mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-11-16 01:07:26 +00:00
5924cea46f
You can experiment with this file, add smth to it and use in your modules. Example of usage: >>>123 >>>Correct! >>>fsda12 >>>ValueError >>> >>>Enter something
15 lines
285 B
Python
15 lines
285 B
Python
while True:
|
|
line = input()
|
|
|
|
if line:
|
|
try:
|
|
a = int(line)
|
|
print("Correct!")
|
|
exit(0)
|
|
except ValueError as vr:
|
|
print("Value Error:",vr)
|
|
continue
|
|
else:
|
|
print("Enter something")
|
|
continue
|