Computer Science, asked by HaariPriya, 29 days ago

Convert 0o156 into decimal in python​

Answers

Answered by devilop27372
1

Answer:

from decimal import *

getcontext().prec = 6

Decimal(1) / Decimal(7)

Decimal('0o156')

getcontext().prec = 28

Decimal(1) / Decimal(7)

print { Decimal }

 

Similar questions