CP104 Lecture Notes - Lecture 3: Reserved Word
CP104 verified notes
3/3View all
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.