Skip to content

Commit c69d222

Browse files
committed
Wrote docstring for get_security_question
1 parent 3a4eb97 commit c69d222

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Application/Casino/Casino.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ def handle_manage_selection(self) -> None:
282282
"""
283283
Prompts the user to choose an account management option: add funds, reset password, or go back.
284284
Executes the selected action.
285+
:return: None
285286
"""
286287
while True:
287288
answer: str = self.console.get_string_input(f"You have ${self.account.balance}" +
@@ -303,6 +304,12 @@ def handle_manage_selection(self) -> None:
303304
self.console.print_error("Invalid input. Please try again")
304305

305306
def get_security_question(self, possible_questions) -> str:
307+
"""
308+
Displays a list of possible security questions and prompts the user to select one by number.
309+
310+
:param possible_questions: A list of strings representing security questions.
311+
:return: The selected security question as a string.
312+
"""
306313
self.console.print_colored("Please select a security question by typing the corresponding number: ")
307314

308315
for i, question in enumerate(possible_questions):

0 commit comments

Comments
 (0)