Skip to content

Commit 281b62b

Browse files
authored
docs(printifnot): less ambiguous instructions (#2996)
1 parent 441fb88 commit 281b62b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

subjects/printifnot/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
### Instructions
44

5-
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`.
5+
Write a function that takes a string and returns:
66

7-
- If it's an empty string return `G` followed by a newline `\n`.
7+
- `"G\n"` if the string's length is less than 3 (including empty string).
8+
9+
- `"Invalid Input\n"` otherwise.
810

911
### Expected function
1012

0 commit comments

Comments
 (0)