0% found this document useful (0 votes)
27 views2 pages

Untitled0.Ipynb - Colab

The document contains a Python notebook where the user, Harshit Gupta, introduces himself and shares personal details such as age, school, and interests. It includes various programming exercises demonstrating mathematical calculations, accepting user input, and calculating the area and perimeter of a square. The notebook showcases basic programming skills and mathematical operations in Python.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

Untitled0.Ipynb - Colab

The document contains a Python notebook where the user, Harshit Gupta, introduces himself and shares personal details such as age, school, and interests. It includes various programming exercises demonstrating mathematical calculations, accepting user input, and calculating the area and perimeter of a square. The notebook showcases basic programming skills and mathematical operations in Python.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

23/01/2025, 18:38 Untitled0.

ipynb - Colab

write 10 lines about yourself

print(" Name;Harshit Gupta")


print("i am 16 years old")
print("i study in kulachi hansraj model school")
print("My class is 11-A")
print("i live in delhi")
print("i love to study computer science")
print("i like playing games")
print("i study pcm")
print("my favourite game is cricket")
print("my favourite colour is red")

Name;Harshit Gupta
i am 16 years old
i study in kulachi hansraj model school
My class is 11-A
i live in delhi
i love to study computer science
i like playing games
i study pcm
my favourite game is cricket
my favourite colour is red

Write program to by the mathematical formula

print(10/2+3*4-5)
print(5-4*3/4+6/5*2)
print(9/2-4/3+5*4-7/2)
print(10-5+4*5/7-4)

12.0
4.4
19.666666666666668
3.8571428571428577

write a program to perform calculation

a=10
b=20
print("sum=",a+b)
print("product=",a*b)
print("difference=",a-b)
print("quotient=",a/b)
print("remainder=",a%b)
print("floordivision=",a//b)

sum= 30
product= 200
difference= -10
quotient= 0.5
remainder= 10
floordivision= 0

write a program to accept two number

a=int(input("enter first numer:"))


b=int(input("enter second numer:"))
print("sum=",a+b)
print("product=",a*b)
print("difference=",a-b)
print("quotient=",a/b)
print("remainder=",a%b)
print("floordivision=",a//b)

enter first numer:10


enter second numer:15
sum= 25
product= 150
difference= -5
quotient= 0.6666666666666666
remainder= 10

https://colab.research.google.com/drive/15Vk0zGnkLJerP7RWPoQ9cC6keBJ30e0s 1/2
23/01/2025, 18:38 Untitled0.ipynb - Colab
floordivision= 0

write a program to accept the side and find the area and perimeter of square

side=int(input("enter side"))
area=side*side
perimeter=4*side
print("area=",area)
print("perimeter=",perimeter)

enter side3
area= 9
perimeter= 12

https://colab.research.google.com/drive/15Vk0zGnkLJerP7RWPoQ9cC6keBJ30e0s 2/2

You might also like