Find the errors from the following code:
if (a>b)
print a:
else if (a<b)
print b:
else
print “both are equal”
if (a>b) // missing colon
else if (a<b) // missing colon // should be elif
else // missing colon
print “both are equal"