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

Python Program Ques

The document contains a list of programming tasks that require writing Python programs for various operations, including swapping numbers, converting lists to Numpy arrays, printing patterns, performing arithmetic operations, and working with matrices. Each task is assigned a score of 5 points, indicating their importance or complexity. The tasks cover a range of topics suitable for practicing programming skills in Python.

Uploaded by

unknownuser78903
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 views

Python Program Ques

The document contains a list of programming tasks that require writing Python programs for various operations, including swapping numbers, converting lists to Numpy arrays, printing patterns, performing arithmetic operations, and working with matrices. Each task is assigned a score of 5 points, indicating their importance or complexity. The tasks cover a range of topics suitable for practicing programming skills in Python.

Uploaded by

unknownuser78903
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

Q1.

Write a program to input three number and swap them as this: 5


2nd number gets the value of 1st + 2nd number
3rd number gets the value of 2nd+ 3rd number

Q2. Write a program to convert a python list to Numpy array. 5


Q3. Write a program to print the following pattern: 5
*
* * *
* * * * *
* * * * * * *
Q4. Write a program to enter two integers and perform all arithmetic 5
operations (+, -, *, /, %) on them
Q5. Write a program to compute total marks from the marks of 5 subjects 5
stored in the form of a list.

Q6. Write a program to print table of a number, say 5. Print output in 5


following format.
5x1=5
5 x 2 = 10
……
5 x 10 = 50
Q7. Write a program to calculate and print the sum of even and odd integers 5
from 1 to 10.
Q8. Write a program to print the numbers divisible by 5 from a given list of 5
number: [11, 25, 35, 26, 50, 61]
Q9. Write a program to create a 2D array using Numpy. 5
Q10. Write a program to print squares of all numbers present in a list : 5
[8, 2, 7, 11, 20, 6]
Q11. Write a program to develop a matrix of 3 X 3 with values from 11 to 28. 5
Q12. Write a program to input a number and find whether Zero, Positive or 5
Negative.
Q13. Write a program to input a number and print the sum of digits in the 5
given number.
Q14. Write a program to print the Fibonacci series up to 10 numbers. 5
Q15. Write a program to inpur a number and check the following, if the 5
number is
Even and < 50
Even and > 50
Even and = 50
Odd

You might also like