Introduction to Python

37 / 79
   

Python - Guess The Type

We can find out the variable type using type() function. To find out the type of variable "a" the command is

type(a)

Instructions -

Use Jupyter notebook on the right-hand side. Press "Shift + Enter" to run code in individual cells.

  • In the previous exercise, find out the type of area_of_rectangle variable using type() function

  • The type of area_of_rectangle variable is