27 lines
		
	
	
		
			684 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			684 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
								 | 
							
								---
							 | 
						||
| 
								 | 
							
								title: List Append Method
							 | 
						||
| 
								 | 
							
								---
							 | 
						||
| 
								 | 
							
								## List Append Method
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								There are many methods for lists, you can explore all of them by typing `help(list)` in your python console.
							 | 
						||
| 
								 | 
							
								One of them is the append function which, as the name says appends the argument given list.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#### Example Usage
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```py
							 | 
						||
| 
								 | 
							
								words = ["I", "love", "Python"]
							 | 
						||
| 
								 | 
							
								words.append("very much")
							 | 
						||
| 
								 | 
							
								print(words)
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								#### Output
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								["I", "love", "Python", "very much"]
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								 As you might have noticed the element `"very much"` is appended to the list.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#### More Information:
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								The official documentation for `append()` can be found <a href='https://docs.python.org/3.6/tutorial/datastructures.html' target='_blank' rel='nofollow'>here</a>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 |