Lec 1 | Next Lecture |
Lec 1, Mon 01/06
Getting Started
-
Introductions
-
Course Structure and Policies
- All slides will be posted on the course website under “Lectures” -> “Link to Lecture Slides”
-
Algorithm and pseudocode
- Running Python in IDLE
print("Hello, World!")
- Breaking the code to see the errors
- Notice that IDLE has helpful color-coding and highlighting to help you
- Remove the last parenthesis
)
- Error in IDLE: unexpected EOF while parsing
- Remove the last double quote
"
- the rest of the text after the removed quote turns green
- Error in IDLE: unexpected EOL while parsing
- Misspell
print
asprnit
print
was previously displayed in purple (to indicate that Python knew that it a special keyword),prnit
is now shown in black- Error in the Python Shell:
NameError: name 'prnit' is not defined