subject

I NEED PYTHON PROGRAMMING HELP! 1. Prompt the user for a number from 1 to 100. Using a while loop, if they enter an invalid number, tell them the number entered is invalid and then prompt them again for a number from 1 to 100. If they enter a valid number, thank them for their input.
Prompt the user for a number from 1 to 100.
While that number is less than 1 or that number is more than 100:
Output that they entered an invalid number, and
Prompt them again for a number from 1 to 100.
Output to the user, thanking them for their input.
2. Prompt the user to guess your favorite color. Using a while loop, if the user didn't guess your favorite color [pick one for this activity] then tell them they are incorrect, then ask them again. Whenever they guess the color correctly, output that they are correct and how many guesses it took them.
Create a variable and assign it the value of 1.
Prompt the user to guess your favorite color.
While their guess is not equal to your favorite color:
Tell them they are incorrect.
Prompt them to guess again.
Add one to the variable above.
Output to the user that they were correct and how many attempts it took, using the variable.
3. Ask the user how many numbers they want to add. Using a for loop, prompt the user to enter that many numbers, one by one, keeping track of the sum. At the end, after the user has entered all numbers, output the sum.
Create a variable and assign it the value of 0.
Prompt the user for how many numbers they want to use.
With a for loop, set it to repeat enough times to get all their values.
Prompt the user for a number.
Add that number to the variable that started as 0.
Output to the user the sum of all values entered.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
This first part of the film shows the early history of motion pictures. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theatre productions? explain. in the scene where don is going to the party (starting at time code 14: 51), we see a street scene as he first rides with cosmo and then with kathy. what aspects did the filmmaker include to make the scene look and feel like don, cosmo, and kathy are riding in a car on a street? think about elements such as scenery, sound, props, lighting, and so on. a "talkie" picture is shown starting around time code 21: 15. how does the audience in the film react to the "talkie"? what influence do audiences have on film and theatre performances? how do film and theatre actors influence audiences? in the musical scene with cosmo (starting at time code 27: 00), how does the actor use props? what is the result? do you think the use of props effectively fulfilled the artistic vision for this musical number? why or why not?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
You know the right answer?
I NEED PYTHON PROGRAMMING HELP! 1. Prompt the user for a number from 1 to 100. Using a while loop,...
Questions
question
Mathematics, 31.03.2020 18:59
Questions on the website: 13722363