Implement the following:  (PYTHON) 1) Request a floating value from the console from 1 to 100 inclusive. 2) Use the following logic:     print 'Valid' if the input is between 1 and 100 inclusive.     print 'Out of range' if the input is not in the specified range above. 3) Use except to print 'Invalid' if the input is invalid data such as letters or symbols. Input text can be any content. Just make sure to precisely match the output format below. Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course). Example output (if the input is 99.99) Enter a number (1-100): 99.99 Valid

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 22SA
icon
Related questions
icon
Concept explainers
Question

Implement the following:  (PYTHON)
1) Request a floating value from the console from 1 to 100 inclusive.
2) Use the following logic:
    print 'Valid' if the input is between 1 and 100 inclusive.
    print 'Out of range' if the input is not in the specified range above.
3) Use except to print 'Invalid' if the input is invalid data such as letters or symbols.

Input text can be any content. Just make sure to precisely match the output format below.
Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course).


Example output (if the input is 99.99)
Enter a number (1-100): 99.99
Valid

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning