bugger.
All challenges/Pythoneasyquick-text-separator-v1
THE INVESTIGATION

Keep text after the first colon

Given a string containing a colon, return everything after its first colon, including any later colons.

Parsing

What’s going wrong

Original short debugging exercise. Given a string containing a colon, return everything after its first colon, including any later colons. Read one JSON value from standard input and print the result as JSON. Inputs follow the stated contract. Repair the function and run the checks.

Expected behavior

Given a string containing a colon, return everything after its first colon, including any later colons.

Reproduction

01 Reproduction
"a:b:c"
"b:c"
02 Control
"a:b"
"b"

Before you begin

  • Basic Python expressions

Need a nudge?

Reveal one investigation hint at a time. Try each clue before opening the next.

    The bug is intentional. Run the starter code to see it fail, then work toward a fix. Difficulty is provisional.
    Read-only preview
    Ready when you are
    Every fix starts with a failing test.

    Read the report, then sign in to start your investigation.