+ 24
Error in my code!
10 Answers
+ 11
1. indentation error
2. not use && use & in line 3
a = int(input())
b = int (input())
if(a > b & a % b != 0):
print("Buy it!")
elif (a == b):
print("Buy it!")
else:
print("Try again")
+ 9
Ok thanks
+ 7
Ok Thank you very much ⊂◉‿◉つꋊꋬ꒦ꋊꏂꏂ꓄✨ bro😊
+ 7
a = int(input())
b = int(input())
if a>b and a%b != 0:
print("Buy it!")
elif a == b:
print("Buy it!")
else:
print("Try again")
+ 7
Thank you Sahil
+ 7
Sofi Ur Welcome
+ 5
a = int(input())
b = int (input())
if (a>b & a%b !=0):
print("Buy it!")
elif (a == b):
print("Buy it!")
else:
print("Try again")
In line 3 don't use any indentation
+ 4
Suraj Joshii tnx
+ 3
Welcome sofi☺️