Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 6 Online
OpenStudy (anonymous):

in python version 2.x I write: while i <= 6: print 2*i, ' ', i = i + 1 and i have: 2 4 6 8 10 12 but with version 3.x with print(2*i, ' ', ) how print in one line

OpenStudy (anonymous):

you could look in the Python documentation

OpenStudy (anonymous):

Create a new string and store append str(2*1) + (' ') in that inside loop, then finally print that string

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!