mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
Enhance example in Day 5 - Lists by adding output comment to list1.extend() in 30 Days of Python challenge
This commit is contained in:
parent
1abcf7e620
commit
062e65202b
@ -416,7 +416,7 @@ print(fruits_and_vegetables ) # ['banana', 'orange', 'mango', 'lemon', 'Tomato',
|
||||
# سینتکس
|
||||
list1 = ['item1', 'item2']
|
||||
list2 = ['item3', 'item4', 'item5']
|
||||
list1.extend(list2)
|
||||
list1.extend(list2) # ['item1', 'item2', 'item3', 'item4', 'item5']
|
||||
```
|
||||
|
||||
```py
|
||||
|
||||
Loading…
Reference in New Issue
Block a user