ICT Practical Revision (Python Exercises)
ICT Practical Revision (Python Exercises)
#2. Taking input from the user (finding sum and average of any two numbers):
no1=float(input("First number:"))
no2=float(input("Second number:"))
no3=float(input("Third number:"))
sum=no1+no2+no3
avg=sum/3
#3. Taking input from the user (finding the area of a parallellogram):
base=float(input("Base: "))
height=float(input("Height: "))
area=base*height