0
I have a = float(input()) How can I check if a is an integer ? Thank you
2/12/2021 7:48:32 PM
4 Answers
+4
if a.is_integer(): ...
+1
yes, why not?
visph wow, it is that simple, thank you so much
visph but can I add it in a function
Send us a message