Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 1 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline. My code: user_num1 = int(input()) user_num2 = int(input()) if user_num1 < 0: print("user_num1 is negative.") if user_num2 > 12: user_num2 == 1 else: print("user_num2 is less than or equal to 12.") print('user_num2 is', user_num2)
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:
Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 1 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline.
My code:
user_num1 = int(input())
user_num2 = int(input())
if user_num1 < 0:
print("user_num1 is negative.")
if user_num2 > 12:
user_num2 == 1
else:
print("user_num2 is less than or equal to 12.")
print('user_num2 is', user_num2)
When the input is 0 and 13 my output for user_num2 is 13 and it should be 1. I don't know what I'm doing wrong.

Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









