Question

python Ask the user for an even number between 1 and 10 inclusive. if 10 print...

python Ask the user for an even number between 1 and 10 inclusive. if 10 print Extremely satisfied, if 8 print Satisfied if 6 print Neutral, if 4 print Not satisfied, and if 2 print Extremely not satisfied else print This is not an acceptable rating.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
n = int(input("Enter even number between 1 and 10 inclusive: "))
if(n==10):
    print("Extremely satisfied")
elif(n==8):
    print("Satisfied")
elif(n==6):
    print("Neutral")
elif(n==4):
    print("Not satisfied")
elif(n==2):
    print("Extremely not satisfied")
else:
    print("This is not an acceptable rating")

Add a comment
Know the answer?
Add Answer to:
python Ask the user for an even number between 1 and 10 inclusive. if 10 print...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using python for this programming Factorial Ask the user to enter an integer number. Then print...

    Using python for this programming Factorial Ask the user to enter an integer number. Then print the factorial of that number Write a program to print the below ********                      (note: 8 stars) ******* ****** ***** **** *** ** * Ask the user to enter the speed of their car. Write an if-else statement that displays “Speed is normal” if the speed variable is within the range 24 to 56. If speed variable is outside this range it should display “speed...

  • In python, Write a function that will ask user to enter a number and find if...

    In python, Write a function that will ask user to enter a number and find if it is odd or even. Example run: Please enter a number: 5 5 is an odd number Please enter a number: 10 10 is an even number

  • Write a code using loop and flag function in python jupitior notebook: Ask the user for...

    Write a code using loop and flag function in python jupitior notebook: Ask the user for the number of items they bought. Also ask the price of each item they bought and quantity purchased. Display the total amount they owe. Ask the user for a number n. Calculate 1+2+3+….+n. Ask the user for a number n. Calculate 1*2*3*…*n. Ask the user for number of rows (r) and columns (c). Print * for r rows and c columns. Ask the user...

  • In python ask the user to enter 10 scores. After asking the user to enter 10...

    In python ask the user to enter 10 scores. After asking the user to enter 10 scores (one at a time), print average of the scores.

  • Python: Write a code to ask a number (one digit) from the user and prints the...

    Python: Write a code to ask a number (one digit) from the user and prints the respective row of the multiplication table. For example, if the user enters 5, the following lines will be printed. Note that, if the user enters any number outside the range of 1-9, the program should display an error message. 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25...

  • write a python program to guess a number between 1 to 9. The user is prompted...

    write a python program to guess a number between 1 to 9. The user is prompted to enter a guess. when the user's guess in not correct, ask them for another guess. when the user guesses the correct number, print "correct" and exit the program #use these two lines to begin the program: from random import randint correctNum=randit(0, 9) #now write a while loop to play the game

  • This program should ask the user for the maximum number to print out to and then...

    This program should ask the user for the maximum number to print out to and then print each evennumber starting from 0 to the maximum. You may want to use % operator which gives you the remainder. Some results of the operator is as follows: • 0 % 2 = 0 • 1 % 2 = 1 • 2 % 2 = 0 • 3 % 2 = 1 • 4 % 2 = 0

  • Using two for loops write a program to print a multiplicationtable. Ask the user to...

    Using two for loops write a program to print a multiplication table. Ask the user to input a number between 1 and 10 and print the multiplication table.

  • write in python Create a program that will ask the user for a list of integers,...

    write in python Create a program that will ask the user for a list of integers, all on one line separated by a slash. construct a list named "adj_numbers" which contains the users input numbers after subtracting 2 from each number. then print the resulting list. the input statement and print statement are given to you in the starting code. a sample run of the program is as follows: Enter a list of integers, separated by slashes: 7/3/6/8 resulting list:...

  • In Python, write a program that asks the user for a positive integer number. If the...

    In Python, write a program that asks the user for a positive integer number. If the user enters anything else, the program would ask the user to re-enter a number or enter -1 to quit. If it is a positive number, the program then prints out a multiplication table that goes up to that number. For example, if the user enters 10, the output would look something like this. https://www.vectorstock.com/royalty-free-vector/multiplication-table-on-white-background-vector-2721686

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT