Hands On Exercise

We'll cover the following

Congratulations on completing the lesson on Python data types. Test your knowledge through these exercises and get one step closer to mastering Python!

Exercise 1

What would be the type of a variable with the value of 79.3? What would be the type of a variable with the “Best of Luck!” value? 

Exercise 2

Find the error in this declaration of strings and fix it to run the code.

Press + to interact
my_string = Hello World

Exercise 3

Complete the following code by adding a float and a NoneType in the list.

Press + to interact
my_list = [1, 5, "I'm a string", True]