Octal value assignment
To assign value in octal format to a variable, we use 0o suffix. It tells to the compiler that the value (suffixed with 0o) is an octal value and assigns it to the variable.
Syntax to assign an octal value to the variable
x = 0o12345678
Python code to create variable by assigning octal value
In this program, we are declaring some of the variables by assigning the values in octal format, printing their types, values in decimal format and octal format.
Output
need an explanation for this answer? contact us directly to get an explanation for this answer