Write an expression that will cause the following code to print "greater than -15" if the value of user_num is greater than -15. 1 user_num = int(input()) # Program will be tested with values: -13, -14, -15, -16. 1234567 3 if Your code goes here "'': print('greater than -15') print('-15 or less') 5 else:
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
![CHALLENGE
ACTIVITY
4.4.2: Basic if-else expression.
461710.3116374.qx3zqy7
Jump to level 1
Write an expression that will cause the following code to print "greater than -15" if the value of user_num is greater than -15.
int(input()) # Program will be tested with values: -13, -14, -15, -16.
1 user_num =
2
3 if Your code goes here '':
4
print('greater than -15')
5 else:
print('-15 or less')
567](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F623692e7-e63c-4fc1-8db1-93c5285303af%2Ff9d24976-de8e-4629-b97f-721d73c5ec94%2F1lzz555_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Algorithm:
1. Prompt the user to enter an integer.
2. Store the input in a variable called user_num.
3. Compare user_num to -15.
4. If user_num is greater than -15, print "greater than -15".
5. Otherwise, print "-15 or less".
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)