Basic Python Code

 Basic Python Code

print ('hi');
print ('N. ARUN ADHAVEN');
print ("VIII A")
x=15
y=4
print('x+y is:', x+y)
x=15
y=4
print('x-y is:', x-y)
x=15
y=4
print('x*y is:', x*y)
x=30
y=10
print('x/y is:', x/y)
a=10
b=20
temp=a
a=b
b=temp
print('the value of a:', a)
print('the value of b:', b)
#This Another Way#
x=10
y=20
x,y=y,x
print ('x=', x)
print ('y=', y)

Comments

Popular posts from this blog

Concept Maps for Class VIII Mathematics, CBSE, NCERT

Happy Teacher's Day