I am trying to write a simple program that checks if a user inputs an integer, but there is a problem with my code.
I would like to print out the if
statement only if input is not an integer. What is wrong with the code? Thanks
a = input('What is your name?: ').capitalize()
b = int(input('How old are you?: '))
if b != int:
print('Please input a number')
c = 100-b
print(f"{a} is {b} years old and will turn 100 years old in {c} years.")