i wrote this piece of code that arranges the numbers given by the order that user applies but there is a problem with the last part where if user enter's somthing random it just infinite loop's the "else" how can i fix this? `
#Taking multiple inputs from user entries
x = list(input("Enter multiple value: ").split())
print("List of numbers: ", x)
user = str(input("do you want accending or decending order? "))
while True:
if user == "accend":
x.sort()
print(x)
break
elif user == "decend":
x.sort(reverse=True)
print(x)
break
else:
print("are you stupid? >:( try again! ")
print("congtaz! here are you'r numbers showing in "+ user +" order")
`
i just dont get the logic of while in this problem