Class 10 Practical File
Class 10 Practical File
Session – 2023-24
Practical Work
1. 1. Write a Python code to input and print personal information like Name, Father’s
Name, Class, School Name of a student.
# To print personal information
name = input(“enter name: ”) Output
fname = input(“enter father name: ”)
cls = input(“enter class: ” ) On the left Page
school_name = input(“enter school name: ”) (Blank Page) of the
print(“name: ”, name) File
print(“father name: ”, fname)
print(“class: ”, cls)
print(“school name: ”, school_name)
import pandas as pd
df = pd.read_csv("D:\KALPANA\STUDENT_RECORD.csv")
print(df)
print(df.mean())
print(df.median())
print(df.mode())
14. Read csv file saved in your system and display its information
import pandas as pd
data = pd.read_csv(" D:\KALPANA\STUDENT_RECORD.csv")
print(data)
# Read an image
image = cv2.imread(‘sample.jpg')