0

Guys why my code doesnt change ?

I try made a string,i did A = str (45) print (A) And dont change nothing ! Plz help me

26th Mar 2021, 4:28 PM
Andrea Barreto
Andrea Barreto - avatar
3 Respuestas
+ 1
try to do: print(repr(42)) print(repr(str(42))) to see the difference ;)
26th Mar 2021, 4:36 PM
visph
visph - avatar
+ 1
K
26th Mar 2021, 4:37 PM
Andrea Barreto
Andrea Barreto - avatar
+ 1
A is a string. print(type(A)) When you say print("hello") It will give hello and not "hello".
26th Mar 2021, 4:41 PM
Avinesh
Avinesh - avatar