Answers for "javascript if input is not a string"

0

how to check whether input is string or not

num = input("Enter your number ")

print("\n")
if num.isdigit():
    print("User input is Number ")
else:
    print("User input is string ")
Posted by: Guest on December-08-2020

Code answers related to "javascript if input is not a string"

Python Answers by Framework

Browse Popular Code Answers by Language