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

Python Practice Assignment

Python practice assignment for beginners

Uploaded by

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

Python Practice Assignment

Python practice assignment for beginners

Uploaded by

faique ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment # 2

1. Write a program which takes 5 inputs from user for different subject’s
marks, total it and generate mark sheet using grades ?

2. Write a program which take input from user and identify that the given
number is even or odd?

3. Write a program which print the length of the list?

4. Write a Python program to sum all the numeric items in a list?

5. Write a Python program to get the largest number from a numeric list.

6. Take a list, say for example this one:


a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]

and write a program that prints out all the elements of the list that are
less than 5.

You might also like