Homework 7-1-b Iterating over MyClasslates list (to access each element individually). Update and add to your 7-1-a program. Use a for loop (in addition to what you have from 7-1-a) to print each name separately in a separate line. For example, if your 7-1-a program gives you a list like MyClassmates=[Tim, Billy, Gabriel, Jen, Brittany] Then the output of your 7-1-b program should be Tim Billy Gabriel Jen Brittany

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

This question pertains to Python. I am given a problem that I need to code and I am not sure how to accurately code it. 

I attached screenshots of the problem. 

Homework 7-1-a
creen Shot 2020-10-24 at 2.27.42 AM.png
nd name the list "MyClassmates".
Ompty
Each element represents one of your classmates'
first name.
To do so, use an iterative structure (a while or a for loop) to
ask you about your classmates' first names in each
iteration and populate the list.
Then print the list to make sure it has been populated
correctly.
P Pearson Copyright © 2018 Pearson Education, Inc.
Transcribed Image Text:Homework 7-1-a creen Shot 2020-10-24 at 2.27.42 AM.png nd name the list "MyClassmates". Ompty Each element represents one of your classmates' first name. To do so, use an iterative structure (a while or a for loop) to ask you about your classmates' first names in each iteration and populate the list. Then print the list to make sure it has been populated correctly. P Pearson Copyright © 2018 Pearson Education, Inc.
Homework 7-1-b
Iterating over MyClasslates list (to access each element
individually).
Update and add to your 7-1-a program. Use a for loop (in
addition to what you have from 7-1-a) to print each name
separately in a separate line.
For example, if your 7-1-a program gives you a list like
MyClassmates=[Tim, Billy, Gabriel, Jen, Brittany]
Then the output of your 7-1-b program should be
Tim
Billy
Gabriel
Jen
Brittany
P Pearson Copyright © 2018 Pearson Education, Inc.
Transcribed Image Text:Homework 7-1-b Iterating over MyClasslates list (to access each element individually). Update and add to your 7-1-a program. Use a for loop (in addition to what you have from 7-1-a) to print each name separately in a separate line. For example, if your 7-1-a program gives you a list like MyClassmates=[Tim, Billy, Gabriel, Jen, Brittany] Then the output of your 7-1-b program should be Tim Billy Gabriel Jen Brittany P Pearson Copyright © 2018 Pearson Education, Inc.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY