Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING

KAKATIYA INSTITUTE OF TECHNOLOGY & SCIENCE, WARANGAL


(An Autonomous Institute under Kakatiya University, Warangal)

Assignment- WEEK 3 (AW3)


(UNIT – I)
Topic : Python programming decision control statements
Class : B.Tech. V-Semester
Section : CSE-III
Code-Subject : U18CS506 –Python Programming
Assignment posted on : 16.08.2020 (SUNDAY)
Assignment Submission Due : 23.08.2020 (SUNDAY)
Correction & Posting of Marks : 30.08.2020 (SUNDAY)
Max. Marks: 10
WEEK-3, Assignment-3 (AW3): In this assignment, you will use your knowledge of the Python programming
decision control statements to answer the following questions. These are the follow-up questions on the concepts to
be discussed in the classes during week-3

Q.
Class Answer the following questions. CO CDLL
No
State result of following python code
>>> i=0
Class 1. >>> if (i): [1] CO 1 [U]
-1 >>> i=i+10
>>>print(i)
2. Develop python program for leap year [2] CO 1 [Ap]
State result of following python code
3. >>>while(print(“KITS”)): [1] CO 1 [U]
Class >>> pirnt(“Warangal”)
-2 Develop python program to print prime numbers upto given
4. [2] CO 1 [Ap]
range using while loop
State result of following python code
5. >>>for i in range(5): [1] CO 1 [U]
>>> print(f'{i} & {i*i}', end=', ' if i < 4 else '\n')
State result of following python code
>>> for let in “KITS”
6. >>> pass [1] CO 1 [AP]
Class >>> print(let)
-3 >>>print(“Done”)
Develop python program to print pyramid structure up to
given range using for loop?
7. 1 [2] CO 1 [Ap]
12
123

Note: Guidelines for Assignment submission


a. You have to write assignments in ASSIGNMENT NOTES only
b. On every solution page you should write ROLL NUMBER
c. Save the PDF document with ROLL NUMBER_ASSIGNMENT NUMBER_Course Name.pdf
d. Upload solution file to your Google Drive and submit link to Google form provided to you.
e. You need to submit this ASSIGNMENT NOTES when you start attending classes physically

Course Faculty:U.VijayKumar, Asst.Prof, Dept of CSE

You might also like