# File: ChapterCharacters/charAll.py # c.isdigit() checks if a char is an integer #c.isspace() c.isalpha() #c.islower() c.isupper() boolean functions check if lower/upper case #c.lower() c.upper() transforms to lower and upper case """ """ def inputInt(): while True: # loops until you type an integer n = input("Enter integer n? ") # input as a string if ( n.isdigit() ): # check if all are digits n = int(n) # convert string to int(eger) print("thanks is digit") break inputInt()