MemberDecember 25, 2020 at 9:49 am15 Coins0 Gems
Merry Christmas everyone. I have a question and might sound silly to some/most of you. But I am an absolute beginner.
So I know that the below code is for taking user input. The only thing I want to learn is how do I validate the input to be numbers only?
empid = input("Enter your employee identification number: ")
I want to accept only numbers. Not alphanumeric.
MemberDecember 26, 2020 at 10:28 am434 Coins102 GemsLevel: Amateur
Log in to reply.