Looks like Python to me, since Python has a sorted() command.
you can use print(sorted(alphalist))
To check the output of your script
Oh, and alphalist.sort()
Sorts in place, rather than returning a new array (assuming you’re using Python)
Could the reason your answer is incorrect be that you are typing code into the answer box?
I’m pretty sure the “Coding Levels” tasks are asking for an output, such as the alphabetically sorted words, not your code, since you are allowed to do it in any language.
You must be logged in to reply to this discussion.
Login
1 of 4
This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.