CP104 Lecture Notes - Lecture 3: Reserved Word

161 views1 pages
Verified Note
13 Sep 2018
School
Course
Professor

Document Summary

Use python keyword or reserved word as a variable name. Begin a variable with anything other than a letter or an underscore. Use anything other than a letter, digit or underscore in the body of a variable name. Forget python is case sensitive, i. e. mickeymouse is different from mickeymouse. Compound names should be written using underscores such as: day_of_the_week. Assigning a value to a variable is not ideal since the data is hard-coded into the program. It would be much more useful to get the data from the user (via the keyboard) To ask for an input from a user, you assign a variable to the key term input.

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