+ 1
why can I convert string to integer and then add it to integerāā
7 Answers
+ 3
Zevil Evil why don't you try these things on code playground instead of asking it here.
+ 2
You can do it using int() function.
+ 1
Arsenic What about this:- print(2 + int("sam)) or print(2+int(sam)). Will it work?
šš¢š¢ššØ šš”šš²šš„ And what is ord function?
+ 1
Arsenic I tried mahn. It didn't work. That's why I was asking? Have I done something wrong or do I need to follow a different concept?
btw, thank for the reply!