s = input('Phone number: ') # output will look like print('Not valid') # or print('Country code: 1') print('Next part: 812') print('Next part: 237') print('Next part: 0000')