Skip to content

Commit 8109f63

Browse files
Delete get_username() function.
1 parent 22a5e21 commit 8109f63

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

run.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ def greetings():
4141
)
4242

4343

44-
def get_username():
45-
"""
46-
Returns the user name input.
47-
"""
48-
return input("\n>> ").strip().capitalize()
49-
50-
5144
def print_menu():
5245
"""
5346
Prints the menu of options.
@@ -266,7 +259,7 @@ def main():
266259
Run all program functions.
267260
"""
268261
greetings()
269-
username = get_username()
262+
username = input("\n>> ").strip().capitalize()
270263
chatbot_message(
271264
f"\nHi, {username}. Thank you for using our chat service. "
272265
"\nHow may I assist you today?\n"

0 commit comments

Comments
 (0)