In [9]:
a = 2 
b = 3 
c = 2.3

In [2]:
type(a)


Out[2]:
int

In [5]:
type(c)


Out[5]:
float

In [10]:
s = 'nome'
s


Out[10]:
'nome'

In [11]:
type(s)


Out[11]:
str

In [12]:
s = '1'

In [13]:
x = int(s)

In [14]:
type(x)


Out[14]:
int

In [15]:
x


Out[15]:
1

In [16]:
s


Out[16]:
'1'

In [17]:
x+1


Out[17]:
2

In [18]:
s+1


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-18-76f3e65b7aa6> in <module>()
----> 1 s+1

TypeError: Can't convert 'int' object to str implicitly

In [19]:
q = input()


2

In [20]:
type(q)


Out[20]:
str

In [21]:
q = int(input())


2

In [22]:
q + 1


Out[22]:
3

In [ ]: