Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

Class 10th python programs

Rating
-
Sold
-
Pages
2
Uploaded on
02-03-2026
Written in
2025/2026

Codes for class 10th ai 417 code it contains code for python which are given for assignments in class

Institution
Course

Content preview

#Program 2.1
m=input('Enter a welcome message: ')
print( 'hello',m)
print(*------*)
#Program 2.2
l=int(input('Enter length of rectangle: '))
b=int(input('Enter breadth of rectangle: '))
a=l*b
print('Length of rectangle: ',l)
print('Breadth of rectangle: ',b)
print('Area of rectangle: ',a)
print(*------*)
#Program 2.3
miles=float(input('Enter distance in km: '))
k=1.609*miles
print(miles,'in km is:',k)
print(*------*)
#Program 2.4
s=1e6
minu=s/60
hour=minu/60
days=hour/24
print('One million seconds are eual to',minu,'minutes',hour,'hours',days,'days',)
print(*------*)
#Program 2.5
num1=int(input('Enter a whole no.: '))
num2=int(input('Enter a second whole no.: '))
num3=int(input('Enter a third whole no.: '))
Sum=num1+num2+num3
print('The sum of',num1,',',num2,',',num3,'is',Sum)
print(*------*)
#Program 2.6
h=float(input('Enter Height in meters: '))
w=float(input('Enter weigth in kg: '))
BMI= w/(h**2)
print('Your BMI is',BMI)
print(*------*)
#Program 2.7
n=int(input('Enter a number: '))
cube=n**3
print ('Cube of',n,'is',cube)
print(*------*)
#Program 2.8
km=float(input('Enter km '))
mile=km*0.621371
print(km,'km','in miles is',mile)
print(*------*)
#Program 2.9
t=float(input('Enter tonnes: '))
q=t*10
kgs=q*100
print(t,'tonnes in quintals is',q,'and tonnes in kilograms is',kgs)
print(*------*)
#Program 2.10
p=input('Enter a small verse of poem - ')
print("the poem u entered is ")
print(p)
print(*------*)
#Program 2.11

Written for

Institution
Secondary school
Course
School year
4

Document information

Uploaded on
March 2, 2026
Number of pages
2
Written in
2025/2026
Type
PRESENTATION
Person
Unknown

Subjects

$6.19
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
pavnigoyal

Get to know the seller

Seller avatar
pavnigoyal
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 months
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions