Mar-04-2019, 07:10 PM
(This post was last modified: Mar-04-2019, 08:21 PM by erfanakbari1.)
Hey guys , I'm trying to solve some exercises about digits and string and whole decision statement and I don't know actually how to check whether a input that is been taken by user consists digits or strings or both!
Thank you
inptUser = input('Please enter a variable : ') print(inptUser) for x in inptUser: if x.isdigit(): print(' The input is full of digits ')This is my code but I don't know what's wrong with it . I appreciate if you can help me with this .
Thank you
