Ask your own question, for FREE!
Computer Science 4 Online
OpenStudy (anonymous):

Why is this code in python showing an invalid syntax? mystring="9554" x=3 for i in range(0:x): print (mystring[i])

OpenStudy (anonymous):

The range function has two possibilities range(stop) range(start, stop) https://docs.python.org/2/library/functions.html#range

OpenStudy (anonymous):

Oops! I was making a syntax error. Thankyou for the help. :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!