Question: 1. Write a Python script that will take in a string of student names and a string of student grades and store them both in

1. Write a Python script that will take in a string of student names and a string of student grades and store them both in an array in the same order so that you can then return the name and grade of a student using the same index. As a proof of concept, return the grades of Sammy and Arielle.

Input string

Expected output of script

Shaun, Sammy, Brandon, Arielle, Erik, Steven

89, 97, 47, 99, 69,94

Sammy: 97

Arielle: 99

2. Write a Python script that will create a dictionary based on the input string of the previous problem. The script will then prompt for a name and return the grade of the given student. You do not need to perform any error checking yet.

Input string

Expected output of script

Enter a name: Steven

Enter a name: Shaun

Enter a name: Arielle

Steven: 94

Shaun: 89

Arielle: 99

3. Write a Python script that will take in a string of information in the following format and return a customized message to be printed on a T-shirt. You must save the message framework as a string and then use string.replace() in order to insert your collected words into their place. You will need to collect the following data: name, occupation, birth month, birth state, interests, relative

Input string

Expected output of script

Todd, little caesars sign spinner, October, Minnesota, Aerobatics, grandmother

My name is Todd. I am a fiercely loyal little caesars sign spinner. You might think Im crazy, but I was born in Minnesota so I cant help it. I like Aerobatics, but I love my grandmother. And yes, they bought me this shirt. I was born in October

4. Write a Python script that can read in a number of seconds and return the number of hours, minutes, and seconds it contains.

Input string

Expected output of script

Enter an number of seconds: 5465

1 hour, 31 minutes, and 5 seconds

5. Write a Python script that will calculate a decent tip and the total price on a meal from a two dollar sign restaurant.

Input string

Expected output of script

Enter the total: 24.56

A 15% tip on 24.56 would be 3.68

The total would be 28.24

6. Write a Python script that will take in a number and use membership operators to tell whether that number is a one of my winning lotto numbers or not.

Input string

Expected output of script

Enter a number: 13

Enter a number: 84

Enter a number: 21

13 is not a winning number

84 is a winning number!

21 is not a winning number

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!