def passport_number_chec ker passport_number if passport_number passpo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
def passport_number_checker(passport_number= ''):
if passport_number[0] == '№':
passport_number = passport_number [1:]
return passport_number
passport_number1 = '67 68 789769'
passport_number2 = '5555 987789'
passport_number3 = '7899789987'
passport_number4 = '6611000000000'
passport_number5 = '№ 66 66 777777'
passport_number6 = '№ 6666-777777'
passport_number7 = '№9999 000ooo'
print passport_number_checker(passport_number5)