-
Notifications
You must be signed in to change notification settings - Fork 0
/
while loop.py
85 lines (60 loc) · 872 Bytes
/
while loop.py
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
x=0
while x<7:
print("i am good")
x+=1
x=0
while x<7:
print("i am good",x)
if (x==4):
break
x+=1
x=0
while x<7:
x += 1
if(x==5):
continue
print("i am good", x)
#x+=1
#SKIP A NUMBER OR REPLACEMENT
y=1
while y<6:
print(y)
y+= 1
else:
print("1 is no longer less than 6")
f=1
alight=int(input("Enter your floor"))
while f<=25:
print("welcome, to floor",f)
if f==alight:
break
f+=1
print("Good bye")
"""ti=1
while ti<10:
print("great job")
if(ti==4):
break
ti+=1
dog=0
while dog<7:
print("lots of dogs")
if(dog==6):
break
dog+=1
go=1
while go<10:
print(go)
go+=1
else:
print("done for")
dp=1
while dp<8:
print("nice dp")
dp+=1
re=1
while re<4:
print("not good")
if (re==3):
break
re+=1"""