+ 1
why can I convert string to integer and then add it to integer❓❓
7 Respuestas
+ 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!