def threeFriends(): pass print('Starting threeFriends tests:')threeFriends()print() Implement a function named threeFriends(). The function will ask the user
Fantastic news! We've Found the answer you've been seeking!
Question:
def threeFriends(): pass print('Starting threeFriends tests:')threeFriends()print()
Transcribed Image Text:
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' 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'
Expert Answer:
Related Book For
Guide To Java A Concise Introduction To Programming
ISBN: 978-3031228414
2nd Edition
Authors: James T. Streib, Takako Soma
Posted Date:
Students also viewed these algorithms questions
-
Barry Heer is the founder and controlling shareholder of Heer's Office Interiors (HOI). HOI has grown quickly, selling mid to high end office furniture to a variety of commercial and industrial...
-
You have been assigned as an analyst for comparing the performances of Blackburn Banking Corporation with Delta Banking Corporation during the year 2019; both the Banks have provided the following...
-
Imagine that you own a restaurant. The accompanying table shows different prices of soup and the corresponding number of bowls of soup that were purchased at your restaurant last month. At different...
-
Player A has a $1 bill and a $20 bill, and player B has a $5 bill and a $10 bill. Each player will select a bill from the other player without knowing what bill the other player selected. If the...
-
Suppose you wish to make a solenoid whose self-inductance is 1.4 mH. The inductor is to have a cross-sectional area of 1.2 10-3 m2 and a length of 0.052 m. How many turns of wire are needed?
-
A certain diving bell for use in the ocean has a square window measuring \(0.250 \mathrm{~m}\) on each side. The inside of the bell is pressurized and maintained at a pressure of \(2.00...
-
Assume that the asteroids in Problem 74 collide totally inelastically. Answer the same questions posed in that problem for this situation. Data from Problem 74 Asteroid A1, \(m_{\mathrm{A} 1}=3.60...
-
On January 1, 2014, O'Brien Company issued a $210,000, six-year, 9% installment note to Bulldog Bank. The note requires annual payments of $46,813, beginning on December 31, 2014. Journalize the...
-
The standard interface technology for wireless networks is _ _ _ _ _ _ _ _ _ _ . The hardware component necessary for computers to connect to these networks is a _ _ _ _ _ _ _ _ _ _ .
-
The proposed rates were not in the range the CEO expected given the pricing analysis. The CEO has asked the pricing actuary to verify the total projected loss cost excluding potential large storm...
-
Determine the electric force exerted on a proton, Q by two electrons, Q and Q3 as shown in the figure below. $ 2 cm + Q Q 2 cm [Charge of proton = +1.60 10-9 C, charge of electron = -1.60 10-9 C] 2...
-
How does Realism engage with questions of perception, subjectivity, and the construction of reality, prompting viewers to interrogate their own biases and preconceptions through encounters with...
-
Suppose you finance a project partly with debt, you should neither subtract the debt proceeds from the required investment, nor would you recognize the interest and principal payments on the debt as...
-
Lucy owns a house on which she carries a $100,000 HO-3 policy. The replacement cost of the house is $200,000. A fire loss occurs that has a replacement cost of $6,968. Her deductible on the policy is...
-
what ways does Conceptual art challenge the viewer to actively participate in the creation of meaning, requiring them to intellectually engage with the conceptual underpinnings of the artwork rather...
-
You quit your job where you earned a year to start your own widget business. To start your business, you cashed in your investments of which earned you a year in interest. In the first year, you sold...
-
The Companys management is responsible for establishing and maintaining adequate internal control over financial reporting. The Companys internal control over financial reporting is a process...
-
(a) Water flows through the nozzle of a garden hose. Find an expression for m in terms of line pressure P 1 , ambient pressure P 2 , inside hose diameter D 1 , and nozzle outlet diameter D 2 . Assume...
-
Draw contour diagrams to show the state of execution right after the execution of the statement line1=new LineSI (pt1, pt2); in Fig. 5.15 in Sect. 5.6.1. middle PointD pl PointD p2 PointD X y double...
-
Repeat Exercise 15 in Chap. 3 to allow the user to enter temperatures for any number of cities using the best iteration structure. Data From Exercise 15 The dew point temperature is a good indicator...
-
Suppose that Staff, Faculty, and Student Worker are the subclasses of the Employee class. Indicate whether the following statements are syntactically correct or incorrect. If incorrect, indicate what...
-
Climate change (a) is a subject most scientists disagree about. (b) refers to the effect of greenhouse gases on atmospheric temperature. (c) refers to temperature increases in all of Earths climate...
-
Why do earthquakes produce seismic waves?
-
What method uses records of past earthquakes to predict future earthquakes? What are the limitations of this method?
Study smarter with the SolutionInn App