Is .append() only for number, not for string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is .append() only for number, not for string

13th Jan 2022, 6:07 AM
SHUJA
2 Answers
+ 2
append adds whatever to the end of a list. Have you actually tried it out yourself first?
13th Jan 2022, 6:09 AM
Slick
Slick - avatar
0
Yes I tried but unfortunately i forgot to use [ ] that's why I didn't get answer. And I was thinking it only works for number. But now I get it. ✌🏼
13th Jan 2022, 6:56 AM
SHUJA