Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions subjects/printifnot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

### Instructions

Write a function that takes a `string` as an argument and returns the letter `G` if the argument length is less than 3, otherwise returns `Invalid Input` followed by a newline `\n`.
Write a function that takes a string and returns:

- If it's an empty string return `G` followed by a newline `\n`.
- `"G\n"` if the string's length is less than 3 (including empty string).

- `"Invalid Input\n"` otherwise.

### Expected function

Expand Down
Loading