0

How to use append function

I am begginer

31st Mar 2021, 10:17 AM
Pypie
Pypie - avatar
4 Answers
+ 5
a = [1, 2, 3] a.append(4) print(a) # output [1, 2, 3, 4]
31st Mar 2021, 10:36 AM
Slick
Slick - avatar
31st Mar 2021, 10:37 AM
RšŸšŸ‡®šŸ‡³
RšŸšŸ‡®šŸ‡³ - avatar
+ 1
It's taught in Lesson 38.1 of the Python for beginners course (for some reason I can't link it here)
31st Mar 2021, 10:38 AM
XXX
XXX - avatar