Home python Python Translation of the number in the octal number system

Python Translation of the number in the octal number system

Author

Date

Category

Write a program that gets on the input in a single line a whole decimal number and translates this number to an octal number system.

How to do it?


Answer 1, Authority 100%

Python has a built-in Oct () function

Example of use:

a = int (input ("Enter the decimal number & gt;"))
Print ("Octic Number:% S"% Oct (a))

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions