Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peanut Allergy Compliant Strings #10

Merged
merged 1 commit into from Dec 17, 2021
Merged

Peanut Allergy Compliant Strings #10

merged 1 commit into from Dec 17, 2021

Conversation

Thalomir
Copy link
Contributor

This program takes in a string from the user and removes all instances of the word "peanut" from the string in order for people with a peanut allergy to be able to read the string.

NOTE: The program will automatically try to read from a non-existing file in order to close and stop the program. If the user inputs an empty string or one without "peanut" in it then you must manually close the program using ctrl-c.

To Use:
Run the program and enter a string of your choice that may or may not contain the word peanut and then hit the enter key. The program will then output the same string that was given just without peanut in the string. For example, you could type in:

  • "Hello world." and the output would be: "" because the string does not need to be changed.
  • "Hello peanut world." and the output would be: "Hello world."

@AZHenley AZHenley merged commit 25c98a8 into AZHenley:main Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants