--Originally published at Python
Code:
List1 = [1, 2, 3]
print(List1.copy())
a = int(input(“Add a number to the list: “))
List1.append(a)
print(List1.copy())
Fundamentals of Programming
--Originally published at Python
Code:
List1 = [1, 2, 3]
print(List1.copy())
a = int(input(“Add a number to the list: “))
List1.append(a)
print(List1.copy())