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

Python

Uploaded by

niyatibedi5
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)
8 views

Python

Uploaded by

niyatibedi5
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/ 15

Q1. WAP in Python to find max. And min. in a list of integers entered by user.

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

Q6. WAP in Python to enter temperature in Celsius and convert to Fahrenheit.


Ans6.INPUT

OUTPUT
Q7. WAP in Python to enter Radius of circle. Find and display area and
circumference.
Ans7. INPUT

OUTPUT

Q8. WAP in Python to find Simple Interest and Compound Interest.


Ans8. INPUT

OUTPUT
Q9. WAP to enter 3 coefficients of Quadratic Equation. Find & display whether the
roots are real or imaginary.
Ans9. INPUT

OUTPUT

Q10. WAP to convert temperature from Celsius to Kelvin.


Ans10. INPUT

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.

Item Code/Name/Price GST


Apparel (A) <= 500 5%
Apparel (A) > 500 12%
Footwear (F) <= 1000 5%
Footwear (F) > 1000 18%

Ans11. INPUT
OUTPUT

Q12. WAP in Python to create a Data Frame in Pandas.


Ans12. INPUT

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

Q16.WAP in Python to choose veg or non-veg food.


Ans16. INPUT

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

Q20. WAP to display the values stored in dictionary.


Ans20.INPUT

OUTPUT
Q21. WAP to count a number of vowels in a Word.
Ans21.INPUT

OUTPUT

Q22. WAP to find Entered integer value is Even or Odd.


Ans22. INPUT

OUTPUT
Q23. WAP to Enter any Integer value by user and find out Sum of its Digits.
Ans25. INPUT

OUTPUT

You might also like