In Python how can I convert an integer to a string? I am trying this:
r = 16
I am trying to convert it to a string but it's showing an error like int , I was hoping a str attribute but there's nothing like that.
The error you are facing is because of d.str() , try this:
>>> str(20)'20'>>> int('20')20
Doubts in comments, cheers......!!
You can use the following video tutorials to clear all your doubts:-