We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22bb9b3 commit 00aada2Copy full SHA for 00aada2
exercises/Q1.py
@@ -0,0 +1,10 @@
1
+'''Question:
2
+Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5,
3
+between 2000 and 3200 (both included).
4
+The numbers obtained should be printed in a comma-separated sequence on a single line.
5
+
6
+Hints:
7
+Consider use range(#begin, #end) method'''
8
9
+l = [x for x in range(2000, 3201) if x % 7 == 0 and x % 5 != 0]
10
+print(l)
0 commit comments