CMPT 120 Lecture Notes - Lecture 2: Multiple Choice

47 views2 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

Robust - strongly formed or constructed, able to withstand or overcome. Syntax errors - you"ll catch these as soon as you try to run it. Semantic errors - usually you"ll find these after testing it a few times or. Eg. missing colon after an if condition asking a friend to try it. Sorry, you didn"t enter a year i know. Everything in is called a string. Strip( ) - remove a part from the inputted variable. Strip( . ) - removes the period from the inputted answer. ) - removes the characters . and space at the end of mystring. Mystring. lower( ) - converts all the letters into lowercase. Mystring. upper( ) - converts all the letters into uppercase. Executes the same code several times (iterate) Loops where you know how many times you"re going to loop when you start. Combining code together as a shortcut to make it shorter. Theory & understanding (feb 7 & march 7)

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