Skip to content

Commit 30fb6d0

Browse files
committed
all changes 3-rd step of project
1 parent 04b0f59 commit 30fb6d0

File tree

8 files changed

+23
-2
lines changed

8 files changed

+23
-2
lines changed
404 Bytes
Binary file not shown.

brain_games/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import prompt
2+
3+
4+
def welcome_user():
5+
name = prompt.string('May I have your name? ')
6+
return f'Hello, {name}!'
169 Bytes
Binary file not shown.

brain_games/scripts/brain_games.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env python3
2+
import brain_games.cli
3+
4+
25
def main():
36
print('Welcome to the Brain Games!')
7+
print(brain_games.cli.welcome_user())
48

59

610
if __name__ == '__main__':
319 Bytes
Binary file not shown.

dist/hexlet_code-0.1.0.tar.gz

268 Bytes
Binary file not shown.

poetry.lock

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ packages = [
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.12"
14+
prompt = "^0.4.1"
1415

1516

1617
[build-system]

0 commit comments

Comments
 (0)