CSC108H5 Lecture 1: lec1_shell

71 views2 pages
School
Course
897wjface and 39475 others unlocked
CSC108H5 Full Course Notes
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.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents