Professional Documents
Culture Documents
Department of Electrical & Electronics Engineering: Assignment-WEEK 3
Department of Electrical & Electronics Engineering: Assignment-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