Assignment-3
All University Questions- 3 marks PART A questions. Answer briefly.Date of submission 24th July2026.
1. Explain the basic data types available in Python, with examples.
2. Write a Python program to reverse a number and also find the sum of digits of the number.Prompt the user for input.
3.Define keyword and enumerate some of the keywords in Python. (3)
4 Explain flow of execution of while loop with example.
5.What will be the output of the following code
for c in range(25,15,-2):
c = c + 5
print(c, end=' ')
6.Explain the differences between pass and comment statement in python.
7.Write Python Program to generate prime numbers between two limits.
8. What is meant by a type conversion function? List some common type conversion function with examples.
9.Illustrate the concept of modules and explain how they are used in Python
programs.
10. Write a Python program to find the sum of all even numbers between 1 and N
11.Enumerate any 3 functions in math module.
12 Write a python program to print the first 10 fibonacci numbers.
13.Illustrate lazy evaluation in Python with suitable example.
Comments
Post a Comment