upper = capital letter ; upper()
ex. print (cat.upper())
lower = small letter ; lower()
ex. print (cat.lower())
str = make into string
ex. x = 47
y = str(x)
dot notation can use only string
basic math
+ addition
output : print()
- subtraction
assigning strings : using "..." multiplication
string placement : 1st letter = 0
/ division
print multiple variables : using comma * to the power of
length : how many symbols are used ex. len(cat)
% modulo
blank space counts as a character
ex : dog = "small puppy"
print (len(dog))
Comments
No comments yet.
Cheatographyn. The art of mapping complex subjects into clear, instantly navigable reference guides.