What is append | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is append

Use of append

20th Jan 2020, 7:46 AM
Soha Farheen
Soha Farheen - avatar
3 Answers
+ 3
When you add something at the end of something without removing its content, the process is called appending
20th Jan 2020, 8:22 AM
Abdol Hashimi
Abdol Hashimi - avatar
+ 2
You open files in append mode if you want to modify, but not remove the old content, like the write mode does. Written data will be written to the end of the file.
20th Jan 2020, 7:58 AM
Seb TheS
Seb TheS - avatar
+ 2
Following answer is for python, since I am not entirely sure which language you are asking about. There is a method for lists called append(). In case that is what you are referring to, listName.append(item) will add the 'item' (whatever variable or value you pass to it) to the end of the list you use it on!
20th Jan 2020, 8:11 AM
Joey Barroso
Joey Barroso - avatar