Class: X
-----
Code: 417
Artificial Intelligence
-----
Practical File
Python Program List
-----
Name: Binaisha Acharya
Section: F
Roll No.: 8
INDEX
[Link]. PROGRAM
1 Calculate Simple Interest
2 Calculate Compound Interest
3 Concatenation
4 String Multiplication
5 Addition with Boolean
6 Subtraction with Boolean
7 Type Conversion
8 Assignment, Type, Cast, Addition, Print
9 Assignment, Type, Cast, Addition, Print
10 Calculate Area & Perimeter of Rectangle
11 Calculate Area of Triangle with Base and Height
12 Calculate average Marks of Three Subjects
13 Calculate Surface Area & Volume of Cuboid
1) principle_amount=int(input("enter principle
amount"))
roi =int(input("enter rate of interest"))
time =int(input("enter time"))
simple_interest = (principle_amount * roi *
time)/100
print("simple interest is", simple_interest)
_________________________________________
2) principle=int(input("Enter the value of principle"))
rate=int(input("Enter rate of interest"))
time=int(input("Enter time of year"))
Amount = principle * (pow((1 + rate / 100), time))
CI = Amount - principle
print("Compound interest is", CI)
_________________________________________
3) a = 10
b = "Hello"
print(str(a) + b)
_________________________________________
4) c = 'Ram'
N=3
print(c*N)
5) x = True
y = 10
print(x + 10)
_________________________________________
6) m = False
n = 23
print(n - m)
_________________________________________
7) Birth_day = 10
Birth_month = "July"
print("data type of Birth_day before type casting :", type(Birth_day))
print("data type of Birth_month:", type(Birth_month))
Birth_day = str(Birth_day)
print("data type of Birth_day after type casting :",type(Birth_day))
Birth_date = Birth_day + Birth_month
print("birth date of the student : ", Birth_day) print("data type of
Birth_date : ", type(Birth_date))
_______________________________________________________
8) x = 20.3
y = 10
print(int(x) + y)
_________________________________________
9) m = False
n=5
print(bool(n)+ m)
10) L=int(input("Length"))
B=int(input("Breadth"))
Area=L*B
Perimeter=2*(L+B)
print("Area:",Area)
print("Perimeter:",Perimeter)
_________________________________________
11) H=int(input("Height"))
B=int(input("Base"))
Area=1/2*B*H
print("Area:",Area)
_________________________________________
12) subject1=int(input("marks of subject1"))
subject2=int(input("marks of subject2"))
subject3=int(input("marks of subject3"))
average=(subject1+subject2+subject3/3)
print(average)
_________________________________________
13) L=int(input("enter length of cuboid"))
B=int(input("enter breadth of cuboid"))
H=int(input("enter height of cuboid"))
surface_area = 2 * (L * B + B * H + L * H)
volume = L * B * H
print(surface_area)
print(volume)
THANK YOU
Do u know what
he said to me
What
He was like ur
sawr rude and I
was like boy does
it look like I could
carei