4.1 Code Practice: Edhesive

4.1 Code Practice: Edhesive

Answers

Answer 1

In python 3:

while True:

   name = input("Please enter a name: (Nope to end) ")

   if name == "Nope":

       break

   print("Nice to meet you {}".format(name))

I hope this helps!

   

Answer 2

The program is an illustration of while loops.

While loops are used to perform iterative operations, until the condition is met

The program in Python, where comments are used to explain each line is as follows:

#This prompts the user for name

name = input("Please enter a name (Nope to end) ")

#This checks if input is "Nope"

while name.lower()!="nope":

   #If no, this prints the greetings

   print("Nice to meet you",name)

   #This prompts the user for another input

   name = input("Please enter a name (Nope to end) ")

Note that the loop is repeated until the user enters "Nope" or "nope"

Read more about while loops at:

https://brainly.com/question/18430675


Related Questions

Which sentences describe the value of a conditional statement? Check all that apply.

It allows a programmer to designate a portion of the code that will be run only when a condition is met.

It creates new program code when a condition is met.

It allows a programmer to set a condition that must be met.

It incorporates decision-making into a program.

Answers

Answer:

134

Explanation:

Edgenuity

Answer:

1. It allows a programmer to designate a portion of the code that will be run only when a condition is met.

3. It allows a programmer to set a condition that must be met.

4. It incorporates decision-making into a  program.

Explanation:

For your biology class, you will be giving a presentation of the findings of a plant growth experiment. Which application is best suited for this presentation?


Writer or Word


Impress or PowerPoint


Notepad or Paint


Calc or Excel

Answers

Answer: Powerpoint

Explanation: Easy to give graphs and add pictures. You can also add shapes to create a bar graph if needed.

Answer:

Calc or Excel

Explanation:

Which of the following might cause a mobility impairment that limits computer use? Select 3 options.
a color blindness
Odyslexia
O neurological issue
injury
O genetic issue

Answers

Explanation:

A color blindness , injury .

Answer:

neurological issueinjurygenetic issue

Explanation:

The question is about mobility impairment. Color blindness and dyslexia have to do with vision, so rarely cause mobility issues related to computer use. Rather they would cause issues related to reading the screen.

The remaining three choices are the ones you want.

Bill has several workbooks open, and he would like to see them all side by side on the screen. Which option on the
Arrange All menu should he use?
Tiled
Cascade
Horizontal
Vertical

Answers

Answer:

tiled

Explanation:

A variety of fonts may be used in letter writing as long as the font size is 12 points.
True
False

Answers

False MLA format is Times New Roman font, size 12, double spaced.

Answer:

False

Explanation:

100 POINTS PLEASE HELP Ken Thompson and Dennis Ritchie co-created which operating system?

Answers

Answer:

UNIX operating system

Explanation:

Unix is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, development starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.

Answer:

the UNIX

During the 1960s to 1970s, Bell Labs colleagues Ken Thompson and Dennis Ritchie developed UNIX, a multi-tasking, multi-user operating system alternative to the batch processing systems then dominating the computer industry.

Explanation:

The ____, which amplified weak electrical signals, enabled electrical sound recording.

Answers

Answer:

Radio

Explanation:

which are the two alternatives for pasting copied data in a target cell groups

Answers

Answer:

Excel has decided to paste contents into a single cell, rather than keeping data in columns. When copying from a query in SQL that has data in a table, pasting it into Excel would normally split the data into the columns - keeping the table. But Excel has automatically changed and takes out the table, pasting each row into one cell.

Explanation:


What is a goal?
What is a strategy?
What are tactics?
hy is it important for a goal to be specific?

Answers

A goal is an aim you want to achieve
Strategy is a plan to your achievement
Tactics are is an action carefully planned
A goal is important to be specific cuz it helps u focus on your specific task
Other Questions
Identify the constant proportionality: k= What is 33 and 1/3 as a percent? Input 1 2 3 4 output -10 14 18 function or not What are the two parts of the platform used to run application software? GUI and HCI hardware and operating system kernel and software configuration application base and operating system Petri did the following problem but got the wrong answer. She needs to correct her mistake and turn the problem back in.(5 - 3) 2 3 7 + 125 - 9 3 7 + 125 - 3 7 + 125 - 21 + 14 + 15What correction does Petri need to make?A. She needs to multiply 3 times 7 before she divides.B. She needs to change 25 to 10.C. She needs to add before she multiplies.D. She needs to subtract 5 - 3 first. The radius of a semicircle is 2 yards what is the semicircles perimeter PART 2: Test Crosses (Medium difficulty problem)3. Callie has brown eyes, but her husband Joseph has blue eyes. All three of their children havebrown eyes. Do you know what Callie's genotype is? If yes, what is it? If no, why not?Help please!! Solve graphically, 2x^2+2x-4=0 The capacity of a dump truck is listed by the manufacturer as 10 yd3 . A construction site requires the removal of of dirt, and the contractor has four identical trucks. How many trips will each need to make A television with a 5:3 screen shows an image with a ratio of 5:4 which creates a letter boxed image. What percent of the screens area is occupied by the image?a) 133%b) 75%c) 20%d) 33%e) 25% what is 2(3x+4)=x-7 what is the use of buffer? 1. The human eye can detect wavelengths of light as short as 0.000037 cm. What is thiswavelength in nanometers? A lawn company intends to use the sales of lawn fertilizer to predict the sales of lawn mower. The store manager estimates a probable six-week lag between fertilizer sales and mower sales. The pertinent data are What is the measurement of G? Which of the following are point-slope equations of the line going through(-4,-7) and (3, 2)? Check all that apply.PLEASSSEEE HELP IVE BEEN STUCK ON THIS FOR A COUPLE OF DAYS .. 15 points List 10 important words in the article take it out, fight it out Which table of values will generate this graph?On a coordinate plane, points are at (negative 2, 0), (0, 1), (0, negative 4), and (3, 0). A hot air balloon can hold up to 300 pounds of weight. The balloon's pilot weighs 140 pounds. How many 20-pound bags or sand can also be carried by the hot air balloon? Suppose the production of electricity by a utility generates pollution that harms others. Suppose also that Coase bargainingLOADING...can occur between the utility and the victims of pollution but that the utility has not been legally liable for the damages from its pollution. How would making the utility legally liable for the damages from its pollution affect pollution reduction? If the electric utility and the people suffering the effects of the utility's pollution can bargain, then making the utility legally liable for the damages from its pollution will A. increase the amount of pollution reduction by decreasing the marginal cost of pollution reduction to the utility. B. increase the amount of pollution reduction by increasing the marginal cost and increasing the marginal benefit of pollution reduction to the utility. C. not change the amount of pollution reduction because the marginal benefit and marginal cost of pollution reduction will not change.