LearnPy Hub
← Data Types & Casting problems
Easy

Decimal or Whole?

Read a number as a float and print float.is_integer() of it.

Input

One number.

Output

True or False.

Sample 1

Input
4.0
Output
True

Sample 2

Input
4.5
Output
False
solution.py
Output appears here
Decimal or Whole? · Python practice problem · LearnPy Hub