diff --git a/src/data_types/test_lists.py b/src/data_types/test_lists.py index 33ffdbe9..9f031638 100644 --- a/src/data_types/test_lists.py +++ b/src/data_types/test_lists.py @@ -2,7 +2,7 @@ # @see: https://www.learnpython.org/en/Lists # @see: https://docs.python.org/3/tutorial/introduction.html -# @ee: https://docs.python.org/3/tutorial/datastructures.html#more-on-lists +# @see: https://docs.python.org/3/tutorial/datastructures.html#more-on-lists Python knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as a @@ -263,7 +263,7 @@ def test_list_comprehensions(): # Call a method on each element. fresh_fruit = [' banana', ' loganberry ', 'passion fruit '] - clean_fresh_fruit = [weapon.strip() for weapon in fresh_fruit] + clean_fresh_fruit = [fruit.strip() for fruit in fresh_fruit] assert clean_fresh_fruit == ['banana', 'loganberry', 'passion fruit'] # Create a list of 2-tuples like (number, square). diff --git a/src/user_input/test_input.py b/src/user_input/test_input.py index 0acbbf76..459eec97 100644 --- a/src/user_input/test_input.py +++ b/src/user_input/test_input.py @@ -1,6 +1,6 @@ """User input -@see https://docs.python.org/3/library/functions.html#input +@see: https://docs.python.org/3/library/functions.html#input User input prompts are very helpful when it comes to interactive programming. Not only in games but also in standard file operations, you may want your user to interact with the program. Therefore, the user needs the opportunity to be able to put in information.