INFO1110 Lecture Notes - Lecture 5: Order Of Merit

7 views1 pages

Document Summary

Lomoarcpsd|7290020: >= greater than or equal to, == equals to (equality operator, != not equal to print(4 > 5) print(4 < 5) print(4 <= 5) print(4 == 5) print(5 > 5) print(5 != 6) In python, variable names must conform to the following rules: can only use letters (a-z, a-z), digits (0-9), and underscore (_, cannot start with a digit (0-9) Conventionally, python variables should: use snake case (e. g. number, maximum_value, smallest_box) Use underscores to separate words, if required https://www. python. org/dev/peps/pep-0008/#function-and-variable-names. A desk check" is a pen and paper test. It reveals discrepancies between actual and expected results. We generally format our desk checks as a table: create a column for each variable, create a new row for each change. The if keyword is generally followed by a boolean condition.

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