Advertisement
KateWilson

Из 8сс в 10сс

Jul 24th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def from_8_to_10(a):
  2.     n = 0
  3.     for i in range(len(a)):
  4.         n = n * 8 + int(a[i])
  5.     return(n)
  6.  
  7. print(from_8_to_10(input()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement