Untitled
unknown
plain_text
3 years ago
465 B
8
Indexable
# input variable
amount = int(input())
# Create a list to collect the names
names = list()
# Another list for sorting the names
sort = list()
# Creating a loop to collect and save the names
for i in range(amount):
name = input().upper()
names.append(name)
sort.append(name)
# Sorting the list sort
sort.sort()
# Writing the rule/logic
if names == sort:
print("INCREASING")
elif names[::-1] == sort:
print("DECREASING")
else:
print("NEITHER")Editor is loading...