Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
float.isint
+1
Author: Louis
Dark
Public
Save
PY
py
1
2
3
4
5
#
https://www.sololearn.com/Discuss/3258284/?ref=app
for
integer
in
range
(
31
):
float_ = integer/
3
print
(
int
(
float_
)
if
float_.is_integer
()
else
float_
)
Enter to Rename, Shift+Enter to Preview
OUTPUT