0
What is wrong with my code people 😥
def compare(num1,num2 ,num3): if num1==num2 and num2==num3: return 'all the same' if num1 != num2 != num3: return 'all different' if num1 == num2: return 'num1 is equal to num2' if num1 == num3 return 'num1 is equal to num3' if num2 == num3: return 'num2 is equal to num3'
7 Respuestas
+ 5
What is wrong with my code people 😥
def compare(num1,num2 ,num3):
if num1==num2 and num2==num3:
return 'all the same'
if num1 != num2 != num3:
return 'all different'
if num1 == num2:
return 'num1 is equal to num2'
if num1 == num3:
return 'num1 is equal to num3'
if num2 == num3:
return 'num2 is equal to num3'
+ 5
welcome.
Also a colon : is missing at the second last if statement.
+ 4
identation is not proper
+ 1
🙏thanks a lot
0
Pls help😥💔
0
How can I make it proper