Python-Programming-Lesson-Notes

Seeing Data Types

What are the data types of the following variables?

planet = 'Earth'
apples = 5
distance = 10.5
Solution Python
type(planet)
type(apples)
type(distance)
Output:
<class 'str'>
<class 'int'>
<class 'float'>

Episode 2 Exercise 1