-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEx1.py
More file actions
29 lines (25 loc) · 754 Bytes
/
Ex1.py
File metadata and controls
29 lines (25 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
my_condition = True
input_name = input("Enter your name: ")
# to te real name
m = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in m:
con = str(i) in input_name
if con or input_name == "":
print("Error")
my_condition = False
break
if my_condition:
input_age = input("Enter your age: ")
con2 = input_age.isdigit() and not input_age == ""
if con2:
pass
else:
print("Error")
my_condition = False
if my_condition:
input_address = input("Enter your address: ")
if input_address == "":
print("Error")
else:
print("Hello Ms/Mr", input_name, "age", input_age, "located in", input_address, ".",
"thanks for beening one of our community, Enjoy")