1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stira [4]
3 years ago
7

Assume you have the all_info list that is given in the Do It Now problem 1. This list includes the grades of 4 courses for 4 stu

dents. Write a code that asks a name from the user. Then it will search for that name in the list all info. Of the name exists in the list, the program will display the programming grade of that student. For example, if the user enters 'Sarah ' the program will display 90. If the user enters a name that is not in the list, such as 'Jack', the program will display an error message such as 'Sorry, but this student is not in the list'.
Computers and Technology
1 answer:
ludmilkaskok [199]3 years ago
3 0

Answer:

titles =['name', 'physics', 'chemistry', 'math', 'programming']

student_1 =['Kathy', 90, 80, 75, 100]

student_2 =['John', 65, 84, 79, 90]

student_3 =['Joe', 45, 89, 100, 10]

student_4 =['Sarah', 68, 89, 93, 90]

all_info =[titles, student_1, student_2, student_3, student_4]

student = input("Enter student's name: ")

student_list = [name[0] for name in all_info]

if student in student_list:

   print(all_info[student_list.index(student)][4])

if student not in student_list:

   print("Student name does not exist.")

   

Explanation:

The python program prompts for user input "student" and the input is used to search and return the result of the student in the programming exam. If the name is not in the student_list, the program print an error message.

You might be interested in
Which of the following activities is not permissible for IT professionals while on the job? Check all of the boxes that apply.
Julli [10]

Answer:

sending coworkers an e-mail joke containing suggestive humor

Explanation:

i think that is the not permissible

7 0
2 years ago
Read 2 more answers
Layer 4 security and application services, including server load balancing, Secure Sockets Layer (SSL) offloading, firewalling,
Fittoniya [83]

Answer:

Layer 4 security and application services, including server load balancing, Secure Sockets Layer (SSL) offloading, firewalling, and intrusion prevention system (IPS) services are provided by the data center <u>aggregation</u> layer.

Explanation:

Consider the given information.

A key point for security and application services is the aggregation layer. In the data centre aggregation layer, the Layer 4 security and application services provide server load balancing, SSL offloading, firewalling, and IPS services.

Layer 4 security and application services, including server load balancing, Secure Sockets Layer (SSL) offloading, firewalling, and intrusion prevention system (IPS) services are provided by the data center <u>aggregation</u> layer.

7 0
3 years ago
How old was the mummy where they found a wooden prosthetic toe on him?
White raven [17]

Answer:

950 Bc and 710 bc

Explanation:

They could of course have remained bare foot or perhaps have worn some sort of sock or boot over the false toe, but our research suggests that wearing these false toes made walking in a sandal more comfortable," she continued. The wood and leather toe was made for a woman that likely lived between 950 BC and 710 BC.Oct 2,

6 0
3 years ago
Gabe just won the lottery after ten years of consistently buying a ticket every Friday. Based on his initial reaction of feeling
ludmilkaskok [199]
The answer is D. cortisol level would most likely decrease.                                                                                                                                                                             

5 0
4 years ago
Read 2 more answers
Vanessa has taken several courses in digital graphic design and now has an interview for an internship with a company that creat
salantis [7]

Answer:

portfolio

Explanation:

7 0
2 years ago
Other questions:
  • As a trainer for Exempla Healthcare, Tina is faced with many challenges to properly training her new hires. There are over 40 di
    15·1 answer
  • Given a int variable named calls Received and another int variable named operators On Call write the necessary code to read valu
    14·1 answer
  • I think these might be the answers but im not to sure, so am I right? or wrong? please help
    11·2 answers
  • Once you record your audio and click ok to save it what happens to the recording?
    9·1 answer
  • You work part time at a computer repair store. You are in the process of building a new computer system. The customer wants a mo
    6·1 answer
  • An extract report lists ____________.
    14·1 answer
  • . Convert your age into binary and then to hexadecimal. Show your work.
    5·1 answer
  • NO LINKS<br> Do you need to pay monthly to stream on Twitch?
    5·1 answer
  • How do you write a multiplication formula in excel with an absolute refrence?
    11·1 answer
  • Changing the color of the text in your document is an example of
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!