Is the String in Order?

Published by Matt in

Create a function that takes a string and returns True or False, depending on whether the characters are in order or not.

Examples

is_in_order("abc") ➞ True

is_in_order("edabit") ➞ False

is_in_order("123") ➞ True

is_in_order("xyzz") ➞ True

Notes

You don't have to handle empty strings.

Watch a quick demo on how Edabit works.