Convert Octal String to Decimal Number using Python

int function

octalString = '50'
decimalNumber = int(octalString, 8)
 
print(decimalNumber)

Leave a Comment

Cancel reply

Your email address will not be published.