0% found this document useful (0 votes)
29 views1 page

1

The document describes three levels of Python proficiency from beginner to advanced. It provides descriptions of the types of problems someone at each level should be able to solve, either using basic functions and classes, more advanced techniques, or standard Python packages. It also includes an example programming question and solution to find numbers between 2000 and 3200 that are divisible by 7 but not by 5.

Uploaded by

Vishu Mehta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

1

The document describes three levels of Python proficiency from beginner to advanced. It provides descriptions of the types of problems someone at each level should be able to solve, either using basic functions and classes, more advanced techniques, or standard Python packages. It also includes an example programming question and solution to find numbers between 2000 and 3200 that are divisible by 7 but not by 5.

Uploaded by

Vishu Mehta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Level description
Level Description
Level 1 Beginner means someone who has just gone through an introductory
Python
course. He can solve some problems with 1 or 2 Python classes or
functions.
Normally, the answers could directly be found in the textbooks.
Level 2 Intermediate means someone who has just learned Python, but
already has a
relatively strong programming background from before. He should be able to
solve
problems which may involve 3 or 3 Python classes or functions. The answers
cannot
be directly be found in the textbooks.
Level 3 Advanced. He should use Python to solve more complex problem using
more
rich libraries functions and data structures and algorithms. He is
supposed to
solve the problem using several Python standard packages and advanced
techniques.

Question:
Write a program which will find all such numbers which are divisible by 7
but are
not a multiple of 5,
between 2000 and 3200 (both included).
The numbers obtained should be printed in a comma‐separated sequence on a
single
line.
Hints:
Consider use range(#begin, #end) method
Solution:
l=[]
for i in range(2000, 3201):
if (i%7==0) and (i%5!=0):
l.append(str(i))
print ','.join(l)

You might also like