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 11:00
The great length of north america causes the climate to be varied. true false
Answers: 2
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
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, 02.12.2020 01:00
question
French, 02.12.2020 01:00
question
Mathematics, 02.12.2020 01:00
question
Mathematics, 02.12.2020 01:00