Please reload

December 13, 2016

https://youtu.be/7Bwtj-NwOTE

Casting input to get what you want:

If you want numeric data from a string, you must assume that the user gave you what you want:

age=input(“What is your age?”)

print(“In 5 years you will be %i years old.” % int(age)+5 )

If you want (bad idea) y...

Please reload

Search By Tags
Featured Post

Comments

November 30, 2016

1/1
Please reload

Archive
Please reload

RSS Feed

© 2019 BrainStemSchool.com