Die erste Übung zum Thema Listen
Welcher Code ist korrekt? Antworte bitte mit A, B, C oder D.
# A
numbers = [1, 2, 3]
numbers.append[4]
print(numbers)
# B
numbers = [1, 2, 3]
numbers.append(4)
print(numbers)
# C
numbers = [1, 2, 3]
numbers = numbers + append[4]
print(numbers)
# D
numbers = [1, 2, 3]
numbers.remove[4]
print(numbers)