The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 364 Weeks Ago, 6 Days Ago |
| Questions Answered: | 1850 |
| Tutorials Posted: | 1850 |
Graduate in Biology and Nutrition, MBA Finance
Florida State University
Aug-2000 - Jul-2007
Ass. Relationship Manager
Penn-Florida
Mar-2009 - Feb-2016
Below is the problem and output. What I have thus far is below that. Please take a look and let me know where I am going wrong on this homework assignment. Thank you!
Â
Three gymnasts, Amy, Beth and Connie, compete in a meet. Each gymnast receives two scores from the judges.Â
(a) Ask the user to enter six scores: two scores for each gymnast.Â
(b) List named scores. This is a list of lists. It has three elements. The first element is the list of Amy's scores. The second element is the list of Beth's score. The third element is the list of Connie's score.
(c)Â Display every score stored in the list scores in a separate line.
Â
 The following is an example.
Â
Enter first score of Amy: 14.7
Enter second score of Amy: 14.3
Enter first score of Beth: 13.6
Enter second score of Beth: 12.5
Enter first score of Connie: 12.9
Enter second score of Connie: 12.8
Scores of Amy:
14.7
14.3
Scores of Beth:
13.6
12.5
Scores of Connie:
12.9
12.8
Â
What I have done thus far and my output:
amy1 = float(input('Enter first score of Amy: '))
amy2 = float(input('Enter second score of Amy: '))
allAmy = (amy1, amy2)
beth1 = float(input('Enter first score of Beth: '))
beth2 = float(input('Enter second score of Beth: '))
allBeth = (beth1, beth2)
connie1 = float(input('Enter first score of Connie: '))
connie2 = float(input('Enter second score of Connie: '))
allConnie = (connie1, connie2)
for scores in allAmy:
print('Scores of Amy: ', allAmy)
for scores in allBeth:
print('Scores of Beth: ', allBeth)
for scores in allConnie:
print('Scores of Connie: ', allConnie)
Enter first score of Amy: 14.7
Enter second score of Amy: 14.3
Enter first score of Beth: 13.6
Enter second score of Beth: 12.5
Enter first score of Connie: 12.9
Enter second score of Connie: 12.8
Scores of Amy:Â (14.7, 14.3)
Scores of Amy:Â (14.7, 14.3)
Scores of Beth:Â (13.6, 12.5)
Scores of Beth:Â (13.6, 12.5)
Scores of Connie:Â (12.9, 12.8)
Â
I am getting dups and it is not on separate lines as the output should be.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I