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:
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