Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Java A Concise Introduction To Programming

Authors: James T. Streib, Takako Soma

2nd Edition

3031228413, 978-3031228414

More Books

Students also viewed these Algorithms questions