CP104 Lecture Notes - Lecture 9: Operand, Modulus Guitars
hayjayshay and 38575 others unlocked
2
CP104 Full Course Notes
Verified Note
2 documents
Document Summary
Must convert the string input to the appropriate numeric type. Print( total cost: $ , cost) dynamic typing (vs. static) Statically typed language (c, java): declare all variables and their types at the start of the program. Dynamically typed language (python: variable type is determined when the variable is created. September 23rd, 2015: exponent performs exponential (power) calculation on operators. Ex. divide_ex = 14. 5/10, remainder_ex = 14. 5 % 10, print (divide_ex, remainder_ex) - /: integer division divides left hand operand by right hand operand and gives the result as an integer.