INFO1110 Lecture Notes - Lecture 2: Order Of Merit

7 views1 pages

Document Summary

The basic mathematical operators are: + add, - subtract, * multiply, / divide print(6 + 4) print(6 - 4) print(6 * 4) print(6 / 4) We also have: % modulo/modulus, // oor divide print(6 % 4) print(6 // 4) Values on the left are assigned values on the right. x = 10 print(x) In the code above, the value 10 is being assigned to the variable x. The variable x is then evaluated before it is passed into the print function.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents