In [1]:
A = 10

In [2]:
B=5

In [3]:
#ARITHMETICS

In [4]:
C=A+B

In [5]:
D=A/B


In [6]:
#printing

In [7]:
c


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-7-2cd6ee2c70b0> in <module>()
----> 1 c

NameError: name 'c' is not defined

In [8]:
C


Out[8]:
15

In [9]:
D


Out[9]:
2.0

In [10]:
C
D


Out[10]:
2.0

In [11]:
print(C)


15

In [12]:
print(D)


2.0

In [13]:
print(C)
print(D)


15
2.0


In [14]:
#mathematics

In [15]:
import math

In [16]:
math.sqrt(144)


Out[16]:
12.0

In [17]:
math.sqrt(A)


Out[17]:
3.1622776601683795

In [18]:
round(math.sqrt(A))


Out[18]:
3



In [22]:
#string

In [23]:
greeting ="hello"
name ="sunit"

In [25]:
message = greeting + " "+ name

In [26]:
print(message)


hello sunit

In [ ]: