You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: subjects/printifnot/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,11 @@
2
2
3
3
### Instructions
4
4
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 stringand returns:
6
6
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).
0 commit comments