You are on page 1of 1

In 

[1]:
print("Hello World")

Hello World

In [2]:
a=10

b="Hello"

print(a)

print(b)

10

Hello

In [3]:
a=10

b="Hello"

print(type(a))

print(type(b))

<class 'int'>

<class 'str'>

In [5]:
x=10

y=20

print("Addition is",x+y)

Addition is 30

In [9]:
x=input("Enter Number:")

print(type(x))

Enter Number:23

<class 'str'>

In [11]:
x=int(input("Enter Number:"))

print(type(x))

Enter Number:34

<class 'int'>

In [12]:
x=True

print(x)

True

In [13]:
a=20

b=3

print(a>b)

True

In [ ]:

You might also like