In [1]:
# Compute and print powerball numbers.

###################################################
# Powerball function
# Student should enter function on the next lines.
import random
number1= random.randrange(1,59)
number2= random.randrange(1,59)
number3= random.randrange(1,59)
number4= random.randrange(1,59)
number5= random.randrange(1,59)
powerball= random.randrange(1,35)
print("Today's lucky numbers are " + str(number1) + "," + str(number2) + "," + str(number3) + "," + str(number4) + "," + str(number5) + ".")
print("And the POWERBALL is... " + str(powerball) + ". Thank you for playing powerball.")



    
###################################################
# Tests
# Student should not change this code.
    
powerball()
powerball()
powerball()
Today's lucky numbers are 33,49,45,9,52.
And the POWERBALL is... 7. Thank you for playing powerball.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-6917d4ea9958> in <module>()
     21 # Student should not change this code.
     22 
---> 23 powerball()
     24 powerball()
     25 powerball()

TypeError: 'int' object is not callable
In [ ]: