diff --git a/python-for-beginners/02 - Print/ask_for_input.py b/python-for-beginners/02 - Print/ask_for_input.py index 7721a330..7ed7f2c0 100644 --- a/python-for-beginners/02 - Print/ask_for_input.py +++ b/python-for-beginners/02 - Print/ask_for_input.py @@ -1,4 +1,4 @@ -# The input funciton allows you to prompt the user for a value +# The input function allows you to prompt the user for a value # You need to declare a variable to hold the value entered by the user name = input('What is your name? ') diff --git a/python-for-beginners/14 - Function parameters/get_initials_default_values.py b/python-for-beginners/14 - Function parameters/get_initials_default_values.py index 40d68f13..7a39d7b8 100644 --- a/python-for-beginners/14 - Function parameters/get_initials_default_values.py +++ b/python-for-beginners/14 - Function parameters/get_initials_default_values.py @@ -1,7 +1,7 @@ # Create a function to return the first initial of a name # Parameters: # name: name of person -# force_uppercase: indicates if you always want the initial to be in upppercase: default is True +# force_uppercase: indicates if you always want the initial to be in uppercase: default is True # Return value # first letter of name passed in def get_initial(name, force_uppercase=True): diff --git a/python-for-beginners/14 - Function parameters/get_initials_multiple_parameters.py b/python-for-beginners/14 - Function parameters/get_initials_multiple_parameters.py index aa2139d7..f0fde1fd 100644 --- a/python-for-beginners/14 - Function parameters/get_initials_multiple_parameters.py +++ b/python-for-beginners/14 - Function parameters/get_initials_multiple_parameters.py @@ -1,7 +1,7 @@ # Create a function to return the first initial of a name # Parameters: # name: name of person -# force_uppercase: indicates if you always want the initial to be in upppercase +# force_uppercase: indicates if you always want the initial to be in uppercase # Return value # first letter of name passed in def get_initial(name, force_uppercase): @@ -15,7 +15,7 @@ def get_initial(name, force_uppercase): first_name = input('Enter your first name: ') # Call get_initial function to retrieve first letter of name -# Alwasy return initial in uppercase +# Always return initial in uppercase first_name_initial = get_initial(first_name, False) print('Your initial is: ' + first_name_initial) \ No newline at end of file diff --git a/python-for-beginners/14 - Function parameters/get_initials_named_parameters.py b/python-for-beginners/14 - Function parameters/get_initials_named_parameters.py index 3b7dac60..0fa4a198 100644 --- a/python-for-beginners/14 - Function parameters/get_initials_named_parameters.py +++ b/python-for-beginners/14 - Function parameters/get_initials_named_parameters.py @@ -1,7 +1,7 @@ # Create a function to return the first initial of a name # Parameters: # name: name of person -# force_uppercase: indicates if you always want the initial to be in upppercase +# force_uppercase: indicates if you always want the initial to be in uppercase # Return value # first letter of name passed in def get_initial(name, force_uppercase): diff --git a/python-for-beginners/14 - Function parameters/named_parameters_make_code_readable.py b/python-for-beginners/14 - Function parameters/named_parameters_make_code_readable.py index 3d1e8a0d..74794b1f 100644 --- a/python-for-beginners/14 - Function parameters/named_parameters_make_code_readable.py +++ b/python-for-beginners/14 - Function parameters/named_parameters_make_code_readable.py @@ -9,7 +9,7 @@ # 2 - warning code can continue but may be missing information in records # log_to_db: Should this error be logged to the database # error_message: Error message to display to user and write to database -# source_module: Name of the python module that generated ther error +# source_module: Name of the python module that generated the error def error_logger(error_code, error_severity, log_to_db, error_message, source_module): print('oh no error: ' + error_message)