Week 6 ends - Python
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#------Version 1-------------------
|
||||
#n = input("Input: ")
|
||||
#if n.isnumeric():
|
||||
# print("Integer")
|
||||
#else:
|
||||
# print("Not integer")
|
||||
#-----------------------------------
|
||||
try:
|
||||
n = int(input("Integer: "))
|
||||
print("Integer")
|
||||
except ValueError:
|
||||
print("Not Error")
|
||||
|
||||
Reference in New Issue
Block a user