Zed-King Institute
    All Notes

    O Level · Practical Assignments with Solution

    M3-R5.1 Practical Assignments with Solution

    Zed-King Study app · Free

    O Level students across India practise here, free

    Daily M1–M4 quizFull 100-question mocksAll-India rank
    Open the free app

    Google login · no Play Store needed

    🏆 Free All-India Sunday Mock · Sun, 29 Nov, 11 AM · CCC + O LevelRegister

    About this PDF

    Python practical marathon for PR-3 — every assignment with the complete program and the output it produces, written the way it has to be written in the practical exam.

    This is part of the free O Level PR-3 study material in the Zed-King Study Zone. You can read every page above in your browser, or download the file and study offline. Zed-King Group of Institute is a NIELIT Study Centre in Kaithal, Haryana, and all of this material follows the current NIELIT syllabus.

    Course
    O Level — NIELIT Foundation Diploma
    Module
    PR3 — PR-3: M3-R5.1 Python Programming — Practical
    Section
    Practical Assignments with Solution
    Format
    PDF — read online or download
    Price
    Free, no sign-up required

    Text from this PDF

    The opening pages as plain text — open the reader above for tables, diagrams and the full file.

    M3-R5.1 Practical Marathon Python Programming

    Q1. Write a function to compute the sum of n Terms of the following series.

    for any positive integer value of X.

    OUTPUT:

    Q2. Write a program that takes as input a list having a mix of 10 positive numbers and a key value.

    Apply linear search to find whether the key is present in the list or not.

    Then output should be: yes Then output should be: No output:

    Q3. Implement python script to accept line of text and find the number of characters, number of vowels and number of blank spaces in it.

    Q4. Write a python program to display the elements of a list in reverse order.

    Q5. Write python scripts to check string is palindrome or not.

    Q6. Write a python program which returns a string by converting all the character to their opposite letter case (uppercase to lowercase and vice versa).

    If input is :Python is Awesome! Then output be: Python is Awesome!

    Q7. Create a python program that removes even duplicate positive integer number(includes zero) from a list and prints the unique numbers in the order they first appeared.

    If input is 4 3 2 1 , then output should be 4 3 2 1.

    If input is 0 0 0 1, then output should be 0 1.

    If input is 1 1 3 3, then output should be 1 1 3 3.

    Q8. Given an integer number n, write a python program to print the factorial of this number.

    If input is :4 then output should be:24.

    If input is :5 then output should be:120.

    If input is :6 then output should be:720.

    If input is :7 then output should be:5040.

    If input is :8 then output should be:40320.

    If input is :10 then output should be:3608800.

    Q9. Implement python scrip to generate prime numbers series up to n.

    Q10. write a program that takes 2 numbers as command line arguments and prints its sum.

    Q11. Implement python scripts to check given number is Armstrong or not.

    Q12.write a python program to calculate the area of a triangle.

    Area=0.5*base*height

    Q13. Write a python program that: · a) Accept a sentence from the user as input. · b) Display the first 5 character and the last 5 character of the sentence using slicing. · c) Concatenate the sentence with another predefined string.

    Q14. write a python program to find the length of a dictionary.iterate through a tuple using for loop.

    If input is:{“England”:”London”,”Italy”:”Rome”} then output should be : 2 If input is:{10:”ten”,20:”twenty”,30:”thirty”} then output should be : 3 If input is:{} then output should be : 0

    Q15.Create a python program that finds the second smallest number in a list of positive integers(including zero).

    If input is:5 4 3 2 1 then output should be : 2 If input is:0 0 0 0 1 then output should be : 1 If input is: 1 11 then output should be : 11

    Q16. Write a python program to open the file with “a” for appending,then add a list of texts to append to the file.

    Q17. Write a python program that takes two integers m and n (where m<n) as input and computes the sum of all even numbers between m and n(inclusive). Use the pass statement for numbers that are not even.

    Q18. Write a python program for finding biggest number among 3 numbers.

    Q19. Design a Simple calculator using if-elif-else statements.

    Q20. Write a python program to calculate the volume (V) of a cylinder given its radius(r) and height(h).

    Formula:

    Q21. Write a python program to access the current year,month and date attributes.

    Q22. Implement python script to generate first N natural numbers.

    Q23. Implement python script to check given number is palindrome or not.

    Q24. Write a python program that reads a positive integer from the user and computes the sum of its digits.

    If input is :999 then output should be :27 If input is:640 then output should be :10

    Run these Python programs yourself — free

    Reading code is not the same as writing it. Type any program from these notes into our free online Python compiler (real Python 3 with NumPy, input() works), or study one of the explained programs with its output.

    Prepare for O Level with expert guidance

    Classroom training, practical labs and exam registration at Zed-King Institute, Kaithal.

    Drag me!