Question: def threeFriends(): pass print('Starting threeFriends tests:')threeFriends()print() Implement a function named threeFriends(). The function will ask the user to enter the names of three friends. After
def threeFriends(): pass print('Starting threeFriends tests:')threeFriends()print()
Implement a function named threeFriends(). The function will ask the user to enter the names of three friends. After the user enters the names, the function will return a list with the three names the user entered. three Friends () Please enter the names of three friends or people you know: Enter the first friend: Tony Enter the second friend: Tim Enter the third friend: Tina ['Tony', 'Tim', 'Tina'] 1-three Friends () Please enter the names of three friends or people you know: Enter the first friend: Bob Enter the second friend: Baghit Enter the third friend: Beth 1 [0] 'Bob' 1 [1] 'Baghit' 1[2] 'Beth'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
