Skip to content

Commit 5c1fe41

Browse files
committed
fix: import cli.py to brain_games.py
1 parent 316fbc5 commit 5c1fe41

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

brain_games/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
def welcome_user(name):
1+
def welcome_user(name: str) -> str:
22
return f"Hello, {name}!"

brain_games/scripts/brain_games.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import prompt
22

3+
from brain_games import cli
4+
35

46
def main():
57
print("Welcome to the Brain Games!")
68
name = prompt.string("May I have your name? ")
7-
print(f"Hello, {name}!")
9+
print(cli.wecome_user(name))
810

911

1012
if __name__ == '__main__':

0 commit comments

Comments
 (0)