Académique Documents
Professionnel Documents
Culture Documents
o Operator
Math: ** (Exponent), % (Modulus/remainder), // (Integer division/quotient)
o String
+ can concatenate strings only (rest all should be typecasted
Example: print("Your name is " + str(length) + " character long")
o Typecasting: str(), int(), float()
o Variable Names: CASE sensitive, one word, letters/numbers/underscore, can’t begin with
number
o A = input() #Takes input from the command prompt!
input() function always returns a string (has to be typecasted!)
Chapter 2: Flow Control
o