+ 1
What does 2nd argument mean in converting to int()?
Code: print(int('0011',2)) Gives output : 3 Why can anyone tell me plz ? I knew int is used to convert to integer but what if 2nd argument is mentioned ?
7 ответов
+ 4
It is use to mention the base of 1st argument ,here it is binary(2)
+ 4
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥
I think help tells us about all the function of modules
- 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥
What is help in python