December 13, 2016
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...
November 21, 2016
Delimiters are the characters that start and stop a certain part of code.
Strings, or groups of characters, can be delimited in 4 ways in Python:
'Single Quotes' (apostrophe)
"Double Quotes" (quotation marks)
'''Triple Single Quotes''' (multi-...
November 30, 2016
December 2016 (7)
November 2016 (14)