Skip to content

Commit 73655db

Browse files
committed
continue
1 parent c8c277f commit 73655db

2 files changed

Lines changed: 52 additions & 5 deletions

File tree

‎DSA_Python.py‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# number1 = input("enter no1 ")
2+
# number2 = input("enter no2 ")
3+
4+
# sum = float(number1)+float(number2)
5+
# print("The Sum of {0} and {1} is {2}".format(number1,number2,sum))
6+
7+
8+
#Maximum
9+
10+
# number1 = input("enter no1 ")
11+
# number2 = input("enter no2 ")
12+
13+
# if number1>=number2:
14+
# print (number1)
15+
# else:
16+
# print (number2)
17+
18+
# number1 = input("enter no1 ")
19+
# number2 = input("enter no2 ")
20+
21+
# print(max(number1,number2))
22+
###################################
23+
24+
# string = input("enter the String: ")
25+
# substr = input("enter the SubString: ")
26+
27+
# #defining string and substrin
28+
29+
# #occurrence of word 'good' in whole string
30+
# count1 = string.count(substr)
31+
# print(count1)
32+
33+
# #occurrence of word 'good' from index 0 to 25
34+
# count2 = string.count(substr,0,25)
35+
# print(count2)
36+
37+
38+
39+
# n = 2
40+
# print (n*(n+1)/2)

‎logic.py‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
#Break
1+
# #Break
2+
3+
# for i in range(10):
4+
# if i == 7:
5+
# print("Loop Reached the Limit")
6+
# break
7+
# print(i)
8+
# print("Outside The Loop")
29

310
for i in range(10):
4-
if i == 7:
5-
print("Loop Reached the Limit")
6-
break
11+
if i%2==0:
12+
continue
713
print(i)
8-
print("Outside The Loop")
14+
15+

0 commit comments

Comments
 (0)