G B PANT DSEU OKHLA III CAMPUS
ASSIGNMENTS
Class: FTD in Electrical Engg IV sem
Course: Python Programming Total Marks: 50
Note: Solve all the questions from Section – I and Section – II
Section – I (Marks: 2 x 10)
1) What is Python?
2) What are the key features of Python?
3) What are the applications of Python?
4) What are the global and local variables in Python?
5) What are the two major loop statements?
6) What are the built-in types available in Python?
7) What is the difference between .py and .pyc files?
8) What do you understand by the term namespace in Python?
9) What is a boolean in Python?
10) What are the functions in Python?
Section – II (Marks: 6 x 5)
1) Write the program in Python to calculate the multiplication and sum of two numbers
2) Write the program in Python to print the sum of the current number and the previous number
3) Write the program in Python to check if the first and last number of a list is the same
4) Write the program in Python to Display numbers divisible by 5 from a list
5) Write the program in Python to return the count of a given substring from a string