Computer Science, asked by kridhi140, 4 months ago

a=input("Enter a number")
if a%5 = 0:
print("Divisible by 5")
else:
print("Not divisible by 5")

what is the error in this code​

Answers

Answered by likhita96
2

Answer:

there is nothing error...

Explanation:

plss follow me......

Answered by stylishshootout
12

\huge{\blue{\boxed{\green{\boxed{\red{\boxed{\bf{\mathtt{\purple{..A}\orange{n}\pink{s}\red{w}\blue{e}\green{r..}}}}}}}}}}

◆━━━━━━━▣✦▣━━━━━━━━◆

 ➺The error is in 2nd line i.e,

→correction a%5==0:

use of == is to check whether the value is 0 or not

use of == is to check whether the value is 0 or notuse of = is to declare that the value is 0

a=input("Enter a number")

if a%5 = = 0:

print("Divisible by 5")

else:

print("Not divisible by 5")

◆━━━━━━━▣✦▣━━━━━━━━◆

☆✿╬ʜᴏᴘᴇ ɪᴛ ʜᴇʟᴘs ᴜ╬✿☆

\large{\boxed{\mathtt{\purple{Stylish}}}}

Similar questions