Question: Task 01 (5 points) Write a Python script that will take in the following string of student names and string of respective student grades in

Task 01 (5 points)

Write a Python script that will take in the following string of student names and string of respective student grades in the following format and return a dictionary with each student's grade stored with their name as the key.

Input string

Expected output of script

"Shaun, Sammy, Brandon, Arielle, Erik, Steven"

"89, 97, 47, 99, 69, 94"

{'Shaun': '89', 'Sammy': '97', 'Brandon': '47', 'Arielle': '99', 'Erik': '69', 'Steven': '94'}

Task 02 (5 points)

Write a python script that will take in a name and compare it to a list of faculty and a list of students. If the name is in the faculty list then it will greet the user as a faculty and exit, and if the name is in the student list then it will greet the user as a student, inform the student of the next due assignment, and then prompt for another name. The lists are as follows:

Faculty = "Rucker, Gatto, Doheny, Ingersoll, Lauer"

Students: "Johnson, Russell, Zeck, Nehdar, Sainz"

Input string

Expected output of script

Enter a name: Johnson

Enter a name: Gatto

Hello, Student! The next assignment is Homework 6.

Welcome, Professor Gatto!

Task 03 (5 points)

Write a Python script that will take in two separate lists and return all of the possible combinations of the elements in those lists.

Input string

Expected output of script

Enter first list: blue, green

Enter second list: beans, bird

blue beans

blue bird

green beans

green bird

Task 04 (5 points)

Write a Python script that uses list comprehension to greet each animal in the list.

Input string

Expected output of script

dog, cat, bear, fossa, tapir

['hello, dog!', 'hello, cat!', 'hello, bear!', 'hello, fossa!', 'hello, tapir!']

Task 05 (5 points)

Write a Python script that uses list comprehension and sequence operators to greet only the animals in the list based on the following list of animals:

animals = ['dog', 'cat', 'bear', 'fossa', 'tapir']

Additionally, you are welcome to add any animals you like to the list.

Input string

Expected output of script

dog, cat, banana, bear, fossa, apple, tapir

['hello, dog!', 'hello, cat!', 'hello, bear!', 'hello, fossa!', 'hello, tapir!']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!