CSCA20H3 Lecture Notes - Newline, Symmetric Difference, Setl

81 views16 pages
School
Course
Professor

Document Summary

Operating system ( allow direct access to the heardware) When write a program on python, it run to the interpreter or the virtual mathcine first, and let the program run for you. Statement : they are python commands: one kind of this is called expression statement, or expression. Python doesn t round intergrer expression, so 17/10 is not 2, but 1. How to get a float: >>> float(17)/10, 1. 7, or 17. 0/10. Operator precedence: * have a higher precedence than . We can order the precedence by using parentheses around the parts of the expression. = in pytgonm eans assigna value to : so a=2*a, is allowable in python. When a variable , say a, appear o both sides of the. Assignment statement , ie with = , then you can use shorthand notation fo rthie operation. Function: know the difference between parameter and argument ( the actual values )

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

Related Questions