0
Convert
How to convert from decimal to octal in python
2 Respostas
+ 1
Alshaqsia Alshaqsi
dec = int("344")
print("The decimal value of",dec,"is:")
print(bin(dec),"in binary.")
print(oct(dec),"in octal.")
print(hex(dec),"in hexadecimal.")
0
other way ?