name = input('Enter your name please: ')
while name != str:
name = input('Please enter only letters for your name: ')
ss = input('Enter your Social Security Number: ')
while ss != int:
ss = input('Please enter only numbers for your social security number:')
So I have this basic program that asks the user for his name and SS# and I wanted to do so the user can't input a str or a float where he is supposed to input an int. I tried this but it'll just loop forever because the If statement is checking to see if the input is the data type str or int, How can I do it to check if the variable is an int or a str?