Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/data_types/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/user_input/test_input.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down