http://www.codeskulptor.org/#user38_f5IZ...
Positive instructive feedback pls :D
I've never used simplegui (and I don't have it), but it seems that
f.add_button("Select A Random Song" ,ss, 100)
calls ss() without any arguments when you press the button. I don't know if there is a way to make it pass an argument, but, if not, you have to take the parameter away from def ss ().
And then you have to decide what number is
It seems you want it decided by
number = random.randrange (min, max)
return number
but the first line needs to be moved up to the top of song_to_number ()
and both lines are indented too far.
and you should use
--- return song
So, you need
def ss ():
--- print "You're listening to:", number_to_song ()
song == "Hey Porsche"
should be
song = "Hey Porsche"
number == 0
should be
number = 0
= is used for assignments
== is used to test for equality