2.1 Numbers

Topic

2.1 Numbers

Topic Progress:

Python has 3 different types of numbers:

  • int
  • float
  • complex

In this lesson, you’ll learn about int and float as you will use these the most. An int in python is a whole number and a float is a floating number which means it has values after the decimal point. See the example below.

x = 6 #this is an int
y = 4.235 #this is a float

You should now be able to answer all the questions in the following quiz!

@

Not recently active