Get startedGet started for free

Checking data types

Python makes our lives easier by inferring the data type of variables you work with, avoiding the need to declare the data type explicitly.

Let's practice checking the data type of different values and variables. You have three variables: customer_age, account_balance, and is_millionaire, and you will learn to get their data types.

This exercise is part of the course

Introduction to Python for Developers

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

customer_age = 49

# Print the data type of customer_age
print(____(customer_age))
Edit and Run Code