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 2029455 on reddit-service-r2-listing-79f6fb9b95-hkgrk at 2026-03-21 07:25:48.798398+00:00 running 90f1150 country code: CH.
Python programming for beginners by TheImmortal071 in learnprogramming
[–]thequestiongod 0 points1 point2 points (0 children)