What is wrong in this program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
2nd May 2020, 11:18 AM
Jyoti
3 Answers
+ 2
There is no any problem with code. .int() function in Python converts a number in given base to decimal. Syntax:- int(string, base) Always return a decimal output. In your code "10" of base 8 is equal to 8 in decimal system.
2nd May 2020, 11:42 AM
Praveen Verma
Praveen Verma - avatar
+ 1
Thanks
2nd May 2020, 11:46 AM
Jyoti
+ 1
Ur welcome 😊
2nd May 2020, 11:48 AM
Praveen Verma
Praveen Verma - avatar