To prompt the user to input an integer we do the following: valid = False while not valid: #loop until the user enters a valid int try: x = int(input('Enter ...
確定! 回上一頁