We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d045b7a commit cbc2647Copy full SHA for cbc2647
1 file changed
loop_control_statement.py
@@ -0,0 +1,28 @@
1
+count=1
2
+while count<=10:
3
+ print(count)
4
+ count+=1
5
+ if count==5:
6
+ break
7
+else:
8
+ print("Hi")
9
+print("out from block")
10
+
11
+for i in range(1,10):
12
+ print(i)
13
+ i+=1
14
+ if i==3:
15
16
17
18
+print("Out from block")
19
20
+list1=["hi","hello","welcome"]
21
+names=["Krishn","Ram","Madhav"]
22
+for item in list1:
23
+ for name in names:
24
+ print(item,name)
25
+ if item=="hello" and name=="Ram":
26
27
+ print("Out From Inner Loop")
28
+print("Out From Inner Loop")
0 commit comments