Every program begins with getting a computer to do something you can see. You'll write and run real Python code inside the editor, display messages on screen, annotate your work with comments so it stays readable, get comfortable with the plain numbers and text that programs handle every single day, and finish by using Python as a calculator to evaluate arithmetic on the spot.
Overview
Syllabus
- Unit 1: Printing Output in Python
- Make Your Program Say Hello
- Print a Number on Screen
- Combining Words and Numbers
- Printing Two Lines of Output
- Unit 2: Writing Readable Code
- Adding a Note to Your Code
- Hiding a Line from Output
- Notes Beside Your Code
- Bringing a Hidden Line Back
- Grouping Code with Blank Lines
- Unit 3: Numbers and Text Values
- Discovering the Integer Type
- Discovering the Floating Point Type
- Discovering the String Type
- Comparing All Three Types Together
- Unit 4: Doing Simple Arithmetic
- Adding Two Numbers
- Multiplying and Subtracting
- Dividing Numbers
- Meeting Your First Error