Skip to main content
Loading page…
Python Mastery
Chapter 2
Lesson 2 of 4
Numbers: int, float, and Arithmetic
Contents
Notes
Tutor
Concept
int and float — Two Kinds of Numbers
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
22 min
9 activities
0 of 9 done
In this lesson
1
int and float — Two Kinds of Numbers
2
All Arithmetic Operators
3
Operator Precedence
4
Practical Arithmetic: Time Converter
5
Float Imprecision & round()
6
Type Conversion: int() and float()
7
Quick Check: Operator Precedence
8
Practice: Temperature Converter
9
Gotcha: // and % with Negative Numbers
Objectives
Use int and float values correctly and convert between them
Apply all arithmetic operators including //, %, and ** and predict operator precedence
Chapter 2 · Variables, Types & Operators
Variables, Objects & Assignment
Numbers: int, float, and Arithmetic
Booleans, Comparisons & Logic
Input, Output & Type Conversion
Previous: Variables, Objects & Assignment
Next: Booleans, Comparisons & Logic