CSC108H5 Lecture 1: lec1_shell
897wjface and 39475 others unlocked
12
CSC108H5 Full Course Notes
Verified Note
12 documents
Document Summary
# the single and double quotations here do the same thing. # if i don"t include the quotations, i get an error. # if i have a single quote within my sentence, then i need to use double quotes outside. # mathematical operations can be done in python. # notice the difference between division and integer division (which rounds the number down to the nearest integer) # this mod operator gives the remainder of 5 divided by 2. # if i put age without quotations to print, it treats it like a variable. # i can modify the value of a variable, even to a different data type. # since i made age be a string now instead of an int, the computer can"t add them up anymore. File "", line 1, in age + 10. Typeerror: can"t convert "int" object to str implicitly. # follow proper naming conventions when naming your variables.