We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf29487 commit ffa532bCopy full SHA for ffa532b
02_crowsnest/crowsnest.py
@@ -28,8 +28,9 @@ def main():
28
29
args = get_args()
30
word = args.word
31
+ article = "an" if word[0].lower() in "aeiou" else "a"
32
- print("Ahoy, Captain, a " + word + " off the larboard bow!")
33
+ print(f"Ahoy, Captain, {article} {word} off the larboard bow!")
34
35
36
# --------------------------------------------------
0 commit comments