Week 2 subject 1: Comment your code
# single-line comment
"""Multi-linecommentsfor complextopics"""
- Add comment at beginning of your code
Week 2 subject 2: Further Turtle drawing
Week 2 subject 3: Variables
- Variables are names for values in memory
- Use variables to enable your programs to do arbitrary jobs
- Name rules for variables
Week 2 subject 4: Python error messages
Week 2 subject 5: Strings
- String is a Python built-in data type.
- There are string variables and string literals.
- string literals are a sequence of characters between a pair of quotation marks.
- Use of different quotation marks:
- escape sequences,
- triple quotes for multi-line string literals and,
- mixed quotation marks.
No comments:
Post a Comment