Answers for "check whether an input is a string or not javascript"

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 "check whether an input is a string or not javascript"

Python Answers by Framework

Browse Popular Code Answers by Language