Skip to content

problem with the instructions for 'Find all the substrings' in the Beginners Python course, part 3 #90

@aliciaJones

Description

@aliciaJones

There is a problem with the instructions for one of the exercises in the Beginners Python course, part 3. Specifically, the instructions say 'all the substrings which are at least three characters long' when in fact both the example and the grading indicate that what is required is strings that are EXACTLY 3 chars long. Based on the instructions, the sample outputs below should have also included: mammo, mammot, mammoth, and moth.

Find all the substrings
Please make an extended version of the previous program, which prints out all the substrings which are at least three characters long, and which begin with the character specified by the user. You may assume the input string is at least three characters long.

Sample output
Please type in a word: mammoth
Please type in a character: m
mam
mmo
mot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions