Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

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