Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your program must include a comment header with Author, Assignment ( Program 1 ) , Description, and Due Date. Create variables to hold a person's

Your program must include a comment header with Author, Assignment (Program 1), Description, and Due Date.
Create variables to hold a person's first name and last name. Do not put spaces in either of the values that are used.
Create variables to hold values for height (in inches) and weight (in pounds).
Assign values to the appropriate variables according to the following statement.
Isaac Newton was 66 and 159 lbs.
Using an f-string and the variables, print the statement above.
Create a list called names that contains the following: Will, Angie, Mike, Eva.
Create a list called heights that contains the following: 66,65,70,69.
Create a list called weights that contains the following: 150,125,175,150.
Add the following lines to your program.
import random
listind = random. randint (0,3)
These lines generate a random integer between 0 and 3 and stores the value in listind. Use listind and your list variables to generate a similar sentence to the one above, but using the appropriate person in the lists. ????? is ??" and ??? lbs. The sentence will change each time you run the program because the random number will change.
Your program that you submit must be a script in a file named program1_Willm.py where you replace WillM with your first name and last initial.
(This has to be in python)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago