Professional Documents
Culture Documents
Mohit CS
Mohit CS
FCCS0102
PRACTICAL RECORD FILE
2023-24
Output -
Output -
Q3. Write a program in python to multiply two matrices.
Output -
Q4. Write a Python program to make a simple calculator.
OUPTUT -
Q5. Write a program in python to print a Fibonacci series.
OUTPUT -
OUPUT -
Q7. Write a program in python to create a function that can accept two
arguments name and age and print its value.
OUTPUT -
OUTPUT -
Q9. Write a program in python to calculate the sum of numbers from 0
to 10.
OUTPUT -
OUPUT -
Q11. Write a program in python to generate a list of all even numbers
between 4 to 30.
OUPUT -
Q12. Write a program in python to return the largest item from the
given list.
OUTPUT -
Q13. Write a program in python to add a key to dictionary.
OUTPUT -
Exercise problems on loops
Q1. Write a program in python to display the first ten natural numbers
OUTPUT -
Q2. Write a program in python to find the sum of first ten natural
numbers.
OUTPUT -
Q3. Write a program in python to display n terms of natural number
and their sum.
OUTPUT -
OUTPUT -
Q5. Write a program in python to display the cube of the number upto
given integer.
OUTPUT -
OUTPUT -
Q7. Write a program in python to display the n terms of odd natural
numbers and their sum.
OUTPUT -
Q8. Write a program in python to display the pattern like right angle
triangle using an asterisk.
OUTPUT -
Q9. Write a program in python to display the pattern like right angle
triangle with a number.
OUTPUT -
Q10. Write a program in python to display the pattern like right angle
triangle with a number which will repeat in a row.
OUTPUT -
Q11. Write a program in Python to make such a pattern like right angle
triangle with a number increased by 1.
OUTPUT -
OUTPUT -
Q13. Write a program in python to make such a pattern like pyramid
with an asterisk.
OUTPUT -
OUTPUT -
Q15. Write a program in Python to display the n terms of even
numbers and their sum.
OUTPUT -
Q16. Write a program in python to find the sum of the series [1-x^2/2!
+ x^4/4! ...... ].
OUTPUT -
Q17. Write a program in python to display the n terms of harmonic
series and their sum
1 + 1/2 + 1/3 + 1/4 +.... 1/n terms
OUTPUT -
OUTPUT -
Q19. Write a python program to check whether two lists are circularly
identical.
OUTPUT -
OUTPUT -
Q21. Write a python program to find the second largest number in the
list.
OUTPUT -
OUTPUT -
Q23. Write a python program to get the frequency of the elements in a
list.
OUTPUT -
Exercise problems on tuples
OUTPUT -
Q2. Write a python program to create a tuple with numbers and print
one item.
OUTPUT -
Q3. Write a python program to add an item in a tuple.
OUTPUT -
Q4. Write a python program to get the 4th element and 4th element
from last of a tuple.
OUTPUT -
Q5. Write a python program to find the repeated items of a tuple.
OUTPUT -
OUTPUT -
OUTPUT -
Q8. Write a python program to remove an item from a tuple.
OUTPUT -
OUTPUT -
OUTPUT -
Q11. Write a python program to find the length of a tuple.
OUTPUT -
OUTPUT -
OUTPUT -
Q14. Write a Python program to remove an empty tuple(s) from the list
of tuples.
OUTPUT –
OUTPUT -
Q16. Write a Python program to convert a given string list into a tuple.
OUTPUT -
Q17. Write a Python program to calculate the product, multiplying all
the numbers of a given tuple.
OUTPUT -
OUTPUT -
Q19. Write a python program to check if a specified element present in
a tuple.
OUTPUT -
OUTPUT -