a = input("Please enter any integer value or value should be quit:") if type(a) is int and a=="quit" : print(a) else: raise ValueError("Your entered value is invalid")
submitted by /u/FewNectarine623
[link] [comments]
r/learnpython a = input(“Please enter any integer value or value should be quit:”) if type(a) is int and a==”quit” : print(a) else: raise ValueError(“Your entered value is invalid”) submitted by /u/FewNectarine623 [link] [comments]
a = input("Please enter any integer value or value should be quit:") if type(a) is int and a=="quit" : print(a) else: raise ValueError("Your entered value is invalid")
submitted by /u/FewNectarine623
[link] [comments]