0% found this document useful (0 votes)
4 views1 page

File PY

The document contains a list of Python programming assignment questions, including tasks such as performing arithmetic operations, swapping variables, checking leap years, printing Fibonacci sequences, and calculating grades. It also includes exercises for summing even numbers, generating multiplication tables, creating a simple calculator, calculating factorials, and sorting a list of tuples. The document indicates that it is not complete and more questions will be shared later.

Uploaded by

nisha langeh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

File PY

The document contains a list of Python programming assignment questions, including tasks such as performing arithmetic operations, swapping variables, checking leap years, printing Fibonacci sequences, and calculating grades. It also includes exercises for summing even numbers, generating multiplication tables, creating a simple calculator, calculating factorials, and sorting a list of tuples. The document indicates that it is not complete and more questions will be shared later.

Uploaded by

nisha langeh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PYTHON ASSIGNMENT FILE QUESTIONS

NOTE:- THIS IS NOT COMPLETE FILE (MORE QUESTIONS YET TO BE SHARED)


Q1: Write a program to enter two integers, two floating numbers and
perform all arithmetic operations on them.
Q2: Write a program to swap two variables.
Q3: Write a program to check Leap Year.
Q4: Write a program to print the Fibonacci Sequence.
Q5: Write a program to find the grade of a student for given marks of 5
subjects.
Q6: Write a program to print Sum of all Even Numbers from given Range
using While Loop.
Q7: Write a program to print a Multiplication Table using For Loop.
Q8: Write a program to perform operations of Simple Calculator by Using
Functions.
Q9: Write a function to calculate the factorial of a number (a non-negative
integer). The function accepts the number as an argument.
Q10: Write a program to sort a list of tuples using Lambda.
Original list of tuples:
[('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)]
Sorting the List of Tuples:
[('Social sciences', 82), ('English', 88), ('Science', 90), ('Maths', 97)]

You might also like