Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solved fast For each of the following, write a single (that is, one) Python statement: a. Tell the user to Enter your name, then

image text in transcribed

please solved fast

For each of the following, write a single (that is, one) Python statement: a. Tell the user to "Enter your name", then read in, and assign to a variable, a string typed in by the user b. Tell the user to "Enter your age", then read in, and assign to a variable, an integer typed in by the user c. Print out, on separate lines, "Your name is varl" and "Your age is var2", where varl and var2 are the values of the two variables entered above d. Print out the first character (only) in the string variable sl e. Print out the last value (only) in the list variable s2 f. Create and save in a variable, a list of all the characters in the string variable s3 g. Create and save in a variable, a new list containing all but the first and last values in the list variable 54 h. Create and save in variable list2, a copy of the list variable list! i. Set the variable mid to the middle value (neither the max nor the min) of the three integer variables x, y, and z j. List variable listl is a list of integers. Set variable list2 to contain all the positive integers in list Don't forget to write the question letter in your

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

What actions could you take to introduce the idea?

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago

Question

Differentiate tan(7x+9x-2.5)

Answered: 1 week ago

Question

Explain the sources of recruitment.

Answered: 1 week ago

Question

Differentiate sin(5x+2)

Answered: 1 week ago