Python
Python
Ans1. INPUT
OUTPUT
Q2. WAP in Python to find exchange 1st half elements of list with 2nd half elements
assuming list is having even no. of elements.
Ans2. INPUT
OUTPUT
Q3. WAP in Python to Shift the negative numbers to right and positive to the left to
the list of no. containing both positive and negative numbers.
Ans3. INPUT
OUTPUT
Q4. WAP in Python Print all Students Name & Marks with Total & Average marks.
Ans4. INPUT
OUTPUT
Q5. WAP which accepts the number from user and Print frequency of number in a
given list of number. If number is not in it should print number not found.
Ans5. INPUT
OUTPUT
OUTPUT
Q7. WAP in Python to enter Radius of circle. Find and display area and
circumference.
Ans7. INPUT
OUTPUT
OUTPUT
Q9. WAP to enter 3 coefficients of Quadratic Equation. Find & display whether the
roots are real or imaginary.
Ans9. INPUT
OUTPUT
OUTPUT
Q11. WAP in Python to enter on item code (A= Apparel & F= Footwear) price of
item. Display item price, Item code, GST & Total Amount as per follows.
Ans11. INPUT
OUTPUT
OUTPUT
Q13. WAP to enter year and display whether it’s a leap year or not.
Ans13.INPUT
OUTPUT
Q14. WAP to enter an integer value & find out its Factorial.
Ans14. INPUT
OUTPUT
Q15. WAP to Enter integer value & Find out whether it is Prime number or not.
Ans15. INPUT
OUTPUT
OUTPUT
Q17. WAP in Python to import a Numpy.
Ans17. INPUT
OUTPUT
Q18. WAP to Enter any three integers and Find the Smallest number.
Ans18. INPUT
OUTPUT
Q19. WAP to Read Name and Marks of a Student and Display the total mark.
Ans19.INPUT
OUTPUT
OUTPUT
Q21. WAP to count a number of vowels in a Word.
Ans21.INPUT
OUTPUT
OUTPUT
Q23. WAP to Enter any Integer value by user and find out Sum of its Digits.
Ans25. INPUT
OUTPUT