Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/main/lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def get_user_input_string(prompt):
def get_user_input_integer(prompt):
"""
Instead of returning None this method should Get user input as an integer.
Hint : use input() and convert it into int data type using int()
Hint :
1. use input()
2. convert it into int data type using int()
:param prompt: The prompt to display to the user.
:return: The integer entered by the user.
"""
Expand All @@ -26,9 +28,9 @@ def get_user_input_integer(prompt):
def get_user_input_float(prompt):
"""
Instead of returning None this method should Get user input as a float.
Hint : use input() and convert it into float data type using float()


Hint :
1. use input()
2. convert it into float data type using float()
:param prompt: The prompt to display to the user.
:return: The float entered by the user.
"""
Expand Down