num = input("Enter a number:")
try: float(num) print("Here's your double!", num) except ValueError: print("Here's your int!", num)
Solo
num = input("Enter a number:")
try: float(num) print("Here's your double!", num) except ValueError: print("Here's your int!", num)
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.