-3
That role was in my python test in college and I can’t understand it, more specifically the part of for.
def exerc4(a,b,c,d,e,f):
if(a > b):
x = a + b
elif (e > f):
x= e + f
else:
x = a + b + c + d + e + f
y =[a, b, c, d, e, f, x]
u = 0
for x in range(0,7):
u += y[x] + y[0]
print(u)
exerc4(20,30,40,50,60,70)
Have you heard of table test?
– Woss