cs file
cs file
cs file
Q1.Write a program that reads a line and prints its statistics like:
Number of uppercase letters:
Number of lowercase letters:
Number of alphabets:
Number of digits:
Q2. Write a program to find the second largest number of a list of
numbers.
Q3.Write a program to count frequency of a given element in a list of
numbers.
Eg List=[1,2,1,3,2,4,5,1,2,2]
Enter element:2 2 has frequency as 4 in the list
Q4. Write a python function second largest (T) which takes as input a
tuple T and returns the second largest element in the tuple. You can
use any of the standard python functions to obtain your result.
Q5. Write a program to define a function that accepts a sentence and
calculate the number of letters , digits, upper case letters and lower
case letters.
Q6 Write a program using function called my_buzz that takes a
number. If the number is divisible by 3, it should return “Fizz”.
If it is divisible by 5, it should return “Buzz”.
If it is divisible by both 3 and 5, it should return “FizzBuzz”.
Otherwise, same no.
RAJHANS VIDYALAYA
ANDHERI-WEST
MUMBAI
CERTIFICATE
This is to certify that this computer practical file has been completed by
____________________of class________ and board roll number____________, in
partial fulfillment of the curriculum of the CENTRAL BOARD OF SECONDARY
EDUCATION leading to the award of All India Senior School Certificate for the
year 2024-2025.
____________________ ______________________
External Examiner Internal Examiner
Date: Date:
____________________ ______________________
SCHOOL SEAL PRINCIPAL
Date: