![]() |
Simple code help - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Simple code help (/thread-28105.html) |
Simple code help - bntayfur - Jul-05-2020 def is_integer_num(n): if isinstance(n,float): print(input(n)) else: print("not a number") n=input('Please enter number: ') is_integer_num(n)It says not a number to anything i write. Why is it like that? Help please!! RE: Simple code help - Yoriz - Jul-05-2020 input returns a str
RE: Simple code help - menator01 - Jul-05-2020 input returns a string. you will need to convert it to int |