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 316fbc5 commit 5c1fe41Copy full SHA for 5c1fe41
brain_games/cli.py
@@ -1,2 +1,2 @@
1
-def welcome_user(name):
+def welcome_user(name: str) -> str:
2
return f"Hello, {name}!"
brain_games/scripts/brain_games.py
@@ -1,10 +1,12 @@
import prompt
3
+from brain_games import cli
4
+
5
6
def main():
7
print("Welcome to the Brain Games!")
8
name = prompt.string("May I have your name? ")
- print(f"Hello, {name}!")
9
+ print(cli.wecome_user(name))
10
11
12
if __name__ == '__main__':
0 commit comments