Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-11 18:09:43 +01:00 committed by GitHub
parent 7d1de5f948
commit 8f504b21d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,6 +229,28 @@ print("AA" not in collection_of_strings) # -> False
print("XX" not in collection_of_strings) # -> True
```
## +
```python
collection_of_strings_a = [
"AA",
"BB",
"CC",
"DD",
]
collection_of_strings_b = [
"EE",
"FF",
"GG",
"HH",
]
print(collection_of_strings_a) # -> ['AA', 'BB', 'CC', 'DD']
print(collection_of_strings_b) # -> ['EE', 'FF', 'GG', 'HH']
collection_of_strings = collection_of_strings_a + collection_of_strings_b
print(collection_of_strings) # -> ['AA', 'BB', 'CC', 'DD', 'EE', 'FF', 'GG', 'HH']
```
## [Additional commands](https://docs.python.org/3/tutorial/datastructures.html)
||