Answered step by step
Verified Expert Solution
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 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 and lbs
Using an fstring 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:
Create a list called weights that contains the following:
Add the following lines to your program.
import random
listind random. randint
These lines generate a random integer between and 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 programWillm.py where you replace WillM with your first name and last initial.
This has to be in python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started