Posts

# write a program to perform airthmatics operation

a=int(input("enter the number")) b=int(input("enter the number")) sum=a+b sub=a-b mul=a*b div=a/b module=a%b expo=a**b print("sum",sum) print("sub",sub) print("multiplication",mul) print("division",div) print("module",module) print("exponential",expo) output- Enter the number :10 Enter the number :8 sum 18 sub 2 multiplication 80 division 1.25 module 2 exponential 100000000 >>> 

# what is python ?

Python Python is object oriented language .it  is a case sensitive language Python is very easy language but more effective language. Python  is exciting and power full language with the right combination. It is high level interpreter ,object oriented language Future of python It is stable language that is going to stay for long .the strainth of python can be understood with fact of   programming language is the more perfect language of combines such as nokia ,google, you tube, NASA,for its easy syntax.  History of python Python  was developed by ,  Guido van russon in the late 80’s and early 90’s at the national research institute for mathematics and computer science in the Nethe

# write a proagram area of circle

radius=float(input("Enter the radius= ")) area=3.14*radius*radius print("area of "+str(area)) output: Enter the radius= 6 area of 113.03999999999999

# Write a program to demonstrate relational operator

x= int(input("Enter the number of x:")) y=int(input("Enter the number of y:")) print(str(x)+"=="+str(y)+"="+str(x==y)) print(str(x)+"!="+str(y)+"="+str(x!=y)) print(str(x)+">"+str(y)+"="+str(x>y)) print(str(x)+"<"+str(y)+"="+str(x<y)) print(str(x)+">="+str(y)+"="+str(x>=y)) print(str(x)+"<="+str(y)+"="+str(x<=y)) output :     Enter the number of x:6 Enter the number of y:4 6==4=False 6!=4=True 6>4=True 6<4=False 6>=4=True 6<=4=False