Jay Harris
PRO
2 weeks ago
Jaycountry asked

What is int?

Apekchhya Shrestha
Expert
2 weeks ago

Great question!

In Python, int stands for integer, which means a whole number — no decimal points.

For example:

  • 5, 100, and -3 are all integers.

You can also use the int() function in Python to convert other types into integers:

  • int(3.7) will become 3

  • int("15") will become 15

This is really useful when you're working with numbers and want to make sure you're using whole numbers for calculations.

Hope this helps! Let me know if you have more questions.

Python
This question was asked as part of the Learn Python Basics course.