Skip to content

Commit

Permalink
style: rename welcom_user() to welcome_user()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Chasovskikh committed Apr 14, 2024
1 parent 85d552b commit f569423
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion brain_games/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import prompt


def welcom_user():
def welcome_user():
name = prompt.string('May I have your name? ')
print(f'Hello, {name}!')
return name
4 changes: 2 additions & 2 deletions brain_games/engine.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from brain_games.cli import welcom_user
from brain_games.cli import welcome_user


def brain_engine(game):
print('Welcome to the Brain Games!')
name = welcom_user()
name = welcome_user()
print(game.description)
counter = 0
flag = True
Expand Down
4 changes: 2 additions & 2 deletions brain_games/scripts/brain_games.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python3
from brain_games.cli import welcom_user
from brain_games.cli import welcome_user


def main():
"""Run code for the brain-games command."""
print("Welcome to the Brain Games!")
welcom_user()
welcome_user()


if __name__ == '__main__':
Expand Down

0 comments on commit f569423

Please sign in to comment.