0% found this document useful (0 votes)
70 views

Python Assignments

Python programming assignment for 4th semester electrical engineering students with 50 total marks. It consists of 2 sections - Section I contains 10 short answer questions worth 2 marks each about Python fundamentals. Section II contains 5 programming questions worth 6 marks each to write Python code to perform calculations, check conditions on lists and strings, and iterate through numbers. Students are instructed to attempt all questions from both sections.

Uploaded by

Satyam Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views

Python Assignments

Python programming assignment for 4th semester electrical engineering students with 50 total marks. It consists of 2 sections - Section I contains 10 short answer questions worth 2 marks each about Python fundamentals. Section II contains 5 programming questions worth 6 marks each to write Python code to perform calculations, check conditions on lists and strings, and iterate through numbers. Students are instructed to attempt all questions from both sections.

Uploaded by

Satyam Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like