Professional Documents
Culture Documents
Atharva Aggarwal 9D
Atharva Aggarwal 9D
MAYUR VIHAR
LAB ACTIVITY
PYTHON PROGRAMS
S.NO
QUESTIONS:
1 WAP TO ACCEPT INPUT FROM USER
AND PRINT THE SAME
2 WAP TO ACCEPT EMPLOYEE
IMFORMATION (EMPLOYEE NAME,
SALARY, DATE OF JOINING)
3 WAP TO CHECK THE DATATYPE OF
INPUT VALUE.
4 WAP to take input of two numbers
and add, subtract, multiply and divide
them.
5 GENERATE A FEE BILL FOR A STUDENT,
TOTAL ANNUAL FEE
6 WAP to enter marks out of 500 and
find the percentage.
7 WAP to find the surface area of a
rectangular prism.
8
9
10
11
12
13
14
CODE 1:
WAP (Write a program) to take an input from user and print them.
CODE:
d=b + c
OUTPUT:
CODE 2:
#WAP to take an input of two numbers and add them.
a=int (input ("Enter a number."))
b=int (input ("Enter another number."))
c=a+b
print ("The sum of the two given numbers is",c)
CODE 3:
b=a/500*100