-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBreak Continue Pass & swapping.py
116 lines (97 loc) · 1.92 KB
/
Break Continue Pass & swapping.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# x=int(input("Enter a number : "))
# y=5
# i=1
# while i<=x:
# if i>y:
# print("sorry")
# break
# print("HI...")
# i+=1
# print('bye')
#-------------------------------------------
# for i in range(9):
# if i==4:
# continue
# print("HI",i)
#-------------------------------------------
# for n in range(2,10):
# if n%2==0:
# print('even number : ',n)
# continue
# print('odd number : ',n)
#--------------------------------------------
#
# for i in range(5):
# if i==3:
# continue
# print("hello",i)
#
# print("---------------------------------------")
#
# for i in range(5):
# if i==3:
# break
# print("hello",i)
#
# print("---------------------------------------")
#
# def arun():
# pass
#-----------------------------------------
# for m in range(2,10):
# for n in range(2,m):
# if m%n==0:
#
# print(m,'equals',n,'*',m//n)
# break
# else:
# print(m,'is a prime number')
#-----------------------------------------
#Break
# y =10
#
# x=int(input('How many Candies do you need ? '))
#
# for i in range(x):
# if i>=y:
# print('Sorry we are out of Candies ')
# break
# print(i,' : Candy')
#
# print('Have a Good Day !!!')
#------------------------------------------
#Continue
# x=30
# for i in range(x):
# if i%2==0:
# continue
# print(i,end=' ')
# print()
# print('Bye')
#-------------------------------------------
#Pass
# for i in range(20):
# if i%2==0:
# pass
# else:
# print(i)
#--------------------------------------
# x=5
#
# y=int(input('Enter the no of candy : '))
#
# for i in range(y):
# if i>=x:
# print('sorry out of candy')
# break
# print(i,' candy')
#
# print('Have a good day')
# x=10
#
# for i in range(x):
# if i%2==0:
# continue
# print(i,end=' ')
# print()
# print('Bye')