Add more text and fix typo
This commit is contained in:
parent
077f45289e
commit
0dde0c524d
1 changed files with 2 additions and 2 deletions
|
|
@ -2,9 +2,9 @@ def readposint(num):
|
||||||
try:
|
try:
|
||||||
val = int(num)
|
val = int(num)
|
||||||
if val > 0:
|
if val > 0:
|
||||||
print("You entered '{}'.".format(val))
|
print("You entered '{}'. That's a positive number!".format(val))
|
||||||
else:
|
else:
|
||||||
print("'{}' is not a positive.".format(val))
|
print("'{}' is not a positive number.".format(val))
|
||||||
except Exception:
|
except Exception:
|
||||||
print("'{}' is not a number.".format(num))
|
print("'{}' is not a number.".format(num))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue