Kodewick
Start learning →
Starter←→0 / 80

Express parcels

#023StarterStringsConditions3 min

At the parcel station, a tracking code that starts with EX is an express parcel and goes out first. Write is_express(code) to return True for express parcels and False otherwise. A lower-case ex start counts too; an empty string doesn't.

Examples
is_express("EX20391")→True
is_express("PO55120")→False
main.py
def is_express(code):
    # your code here: in upper case, check whether it starts with EX
    return False
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.