Condtionals def print_func(x, y): if y >= 5: print(‘A’) print(‘B’) if x > 20: print(‘C’) if y > 10: print(‘D’) if y > 5: print(‘E’) elif x > 10 and y <= 5: print(‘F’) else: print(‘G’) What gets output for the following arguments to print_func? x: 20 y: 5 x: 30 y: 20 x: 20 y:1
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:
Condtionals
def print_func(x, y):
if y >= 5:
print(‘A’)
print(‘B’)
if x > 20:
print(‘C’)
if y > 10:
print(‘D’)
if y > 5:
print(‘E’)
elif x > 10 and y <= 5:
print(‘F’)
else:
print(‘G’)
What gets output for the following arguments to print_func?
x: 20 y: 5 x: 30 y: 20 x: 20 y:10
so I'm trying to input this sstuff into pycharm and run it with doign some self.assert tests to run it but im runnign across multiple problems. what do. How do I go about this?
In this there is if else statements and print alphabet according to values
Error is indentation error the if elif and else statement all should be properly indentated .
Step by step
Solved in 2 steps with 1 images