print()
Given:
num = 8
Expected Output:
The octal number of decimal number 8 is 10
Hint:
Use the %o formatting code in print() function to format decimal number to octal.
%o
Solution:
num = 8 print('%o' % num)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Hint:
Use the
%o
formatting code in print() function to format decimal number to octal.Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer