Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@
| Program-16 | Program to print a right angled triangle. |
| Program-17 | Program to convert Binary to Decimal. |
| Program-18 | Program to check leap year or not. |




| Program-19 | Program to count number of integers between 1 to 50 divisible by a number. |
| Program-20 | Program to create an array of range specified and print. |
10 changes: 10 additions & 0 deletions Python/program-19/program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
a = int(input())
count = 0
list_1 = [i for i in range(1, 51)]

for i in list_1:
if i != a:
if i%a == 0:
count+=1

print(count,end='')
9 changes: 9 additions & 0 deletions Python/program-20/program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
a,b = input().split()

a = int(a)
b = int(b)

list_1 = list(x for x in range(a+1,b+1))

for i in list_1[a:b]:
print(i)