Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def from_8_to_10(a):
- n = 0
- for i in range(len(a)):
- n = n * 8 + int(a[i])
- return(n)
- print(from_8_to_10(input()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement