Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON 3.6 Question 13 Part A. (1e point:s) Write a function named getInt). The function getInt) takes two parameters: i an int, minInt ii an
PYTHON 3.6
Question 13 Part A. (1e point:s) Write a function named getInt). The function getInt) takes two parameters: i an int, minInt ii an int, maxInt The function getInt) should prompt the user for an integer that is no less than minInt and no greater than maxInt. You may assume that the user responds with an integer in this range. (Hint: user input is always a string.) getInt) should return the number provided by the user. For example, if getInt) is the called with parameters 5 and 7, the following would be correct input and output: >Please give me a number no less than -5 and no greater than 7 Question 13 Part B (10 points) Write code that calls getNumber(), using a negative value for minInt and a positive value for maxInt. Your code should than print out the returned integer and whether it is positive, negative or zeroStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started