I'm trying to execute the following Python code:
def monotonic(a):
n = len(a)
for i in range(n):
if((a[i]<a[i+1]) or (a[i]>a[1+1])):
return true
a = [6, 5, 4, 3, 2]
print(monotonic(a))
And I get the following error:
NameError: global name 'true' is not defined