Course Content
1.
Python Variables
0 min
3 min
9
2.
The Print Function
4 min
4 min
0
3.
Numbers and Math in Python
0 min
1 min
0
4.
What is Machine Learning?
0 min
6 min
0
5.
Strings in Python
0 min
11 min
0
6.
Comments in Python
0 min
4 min
0
7.
Functions in Python
0 min
26 min
0
8.
String Formatting with F-Strings
0 min
3 min
0
9.
Conditionals, Booleans, and If Statements
0 min
12 min
0
10.
Intro to Python Lists
0 min
6 min
0
11.
Intro to Python Lists - Exercises
0 min
2 min
6
12.
Lists as a Sequence of Values
0 min
6 min
0
13.
Coming Soon...
0 min
1 min
0

- Save
- Run All Cells
- Clear All Output
- Runtime
- Download
- Difficulty Rating
Loading Runtime
Exercise 1 - Save an integer to a variable
Create a variable called integer_example
and assign it any integer value that you want.
Exercise 2 - Save a float to a variable
Create a variable called float_example
and assign it any float value that you want.
Exercise 3 - Check the type of integer_example
Use the type()
function to check the type of the variable integer_example
.
Save the result of the type()
function to a new variable called integer_example_type
.
If you print()
out the value of integer_example_type
you should see the text <class 'int'>
. However, using the print function to check your work in this way is not a requirement of the exercise, it is optional.
Exercise 4 - Check the type of float_example
Use the type()
function to check the type of the variable float_example
.
Save the result of the type()
function to a new variable called float_example_type
.
If you print()
out the value of float_example_type
you should see the text <class 'float'>
. However, using the print function to check your work in this way is not a requirement of the exercise, it is optional.