-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop_in_python.py
More file actions
45 lines (33 loc) · 800 Bytes
/
loop_in_python.py
File metadata and controls
45 lines (33 loc) · 800 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#n=(input("enter a number "))
#if (n.isdigit()):## no string convertion becuz above its str input
#for i in range(1, int(n)+1):
#print(int(i),end="")
#else:
#print("invalid syntax")
#numb=["avkinash","abilash","soorya","gunal","ajay"]
#print(str(numb).isdigit())
#num=[2,3,-2,10]
#for i in num:
#square=i**2
#print(f"{square}",end=" ")
## make list in vertical with list symbols
#numbe= {5,6,7,8,9}
#emt_var=set()
#for i in numbe:
#square = i+1
#emt_var.add(square)
#print(emt_var)
#n=1,2,3,4
#for num in n:
#print(n)
n=("avinash","abi","soor","gunal")
loop=set()
for i in n:
loops=i
loop.add(loops)
if i == 0:
print(f"{loop} it not successfulll")
break
else:
print(loop)
print("successfully completed...")