Professional Documents
Culture Documents
PRACTIACL FILE:
INFORMATION
PRACTICE – 065
FOR
SESSION: 2022-2023
GUIDED BY: SUBMITTED
BY
SEEMALATA MA’AM DEEPANSHU
PGT (IP) XI-SCIENCE
ACKNOWLEDGEMENT
Deepanshu
XI-Science
CERTIFICATE
Output:
Code 2. WAP to convert temperature in
fahrenheit to Celsius.
Program:
Output:
Code 3. WAP to perform all the mathematical
operation of a calculator.
Program:
Output:
Code 4. Write a program to accept a number
and display the factorial of that number.
Progam:
Output:
Code 5. WAP to convert binary number
to decimal number.
Program:
Output:
Code 6. WAP to find the sum of the
digits of a number.
Program:
Output:
Code 7. Write a function to display a prime
number below 30.
Program:
Output:
Code 8. Write to print of the series 1- x /2! + x
1 2
Program:
Output:
Code 9. WAP to print the following pattern:
*
* *
* * *
* * * *
* * * * *
Program:
Output:
Code 10. WAP to calculate mean of a given list
of number.
Program:
Output:
Code 11. write a program to read a list of n integers
(positive as well as negative ).create two new lists,
one having all positive numbers and the other
having all negative number from the given list. print
all the three lists.
Program:
Output:
Code 12. Write a program to find the largest
and the second largest elements in a given list
of elements.
Program:
Output:
Code 13. Write a program to read elements of a list
and do the following:
1.] the program should ask for the position of the
elements to be deleted from the list and delete this
the element at the desired position in the list.
Program:
Output :
2.] The program should ask for the value of the
element to be deleted from the list and delete this
value from the list.
Program:
Output:
Code 14. write a python program that accepts a
value and checks whether the inputted value is
part of the given dictionary or not. if it is
present, check for the frequency of its
occurrence and print the corresponding key,
otherwise print an error message.
Program:
Output:
Code 15. Write a program that asks the user to
enter product names and prices. Store all of
these in a dictionary whose keys are the product
names and whose values are the prices. When
the user is done entering products and prices,
allow them to repeatedly enter a product name
and print the corresponding price or message if
the product is not in the dictionary.
Program:
Output :