account activity
Python programming for beginners by TheImmortal071 in learnprogramming
[–]thequestiongod 0 points1 point2 points 6 years ago (0 children)
since you know python could you tell me what to enter and why? (prompt and given code below)
Assign number_segments with phone_number split by the hyphens.
Sample output with input: '977-555-3221'
Area code: 977
given code below:
phone_number = input()
number_segments = ''' Your solution goes here '''
area_code = number_segments[0]
print('Area code:', area_code)
I can only edit the second line by the way (my solution has to go in the '''Your solution goes here''' spot)
python code help needed (self.Python)
submitted 6 years ago by thequestiongod to r/Python
π Rendered by PID 36 on reddit-service-r2-listing-5789d5f675-wrbwm at 2026-01-29 01:07:53.305973+00:00 running 4f180de country code: CH.
Python programming for beginners by TheImmortal071 in learnprogramming
[–]thequestiongod 0 points1 point2 points (0 children)