Posts
# write a program to perform airthmatics operation
- Get link
- X
- Other Apps
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 ?
- Get link
- X
- Other Apps
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 program to demonstrate relational operator
- Get link
- X
- Other Apps
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