Python Octal to Decimal

Python program to get an Octal number and covert it to Decimal Number 

Sample Input 1 :

14

Sample Input 1 :

12

Try your Solution

Strongly recommended to Solve it on your own, Don't directly go to the solution given below.

#write your code here

Program or Solution

				
			
					
num=0o12
print(num)

			
				
			

Program Explanation

0O denotes octal literal

Comments