0
Convert
How to convert from decimal to octal in python
3 Respuestas
+ 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 ?