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

Program or Solution

				
			
					
num=0o12
print(num)

			
				
			

Program Explanation

0O denotes octal literal

Comments