+ 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 Answers
+ 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