Difference between revisions of "Python list structure"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
https://docs.python.org/3/tutorial/datastructures.html
 
https://docs.python.org/3/tutorial/datastructures.html
 
+
 +
your_list = []
 
  your_list = [3, 4, 5]
 
  your_list = [3, 4, 5]
 
  your_fruit_list = ['orange', 'apple', 'banana']
 
  your_fruit_list = ['orange', 'apple', 'banana']
Line 6: Line 7:
 
  your_list.pop()
 
  your_list.pop()
  
  list.append
+
[[Methods]]:
  list.insert
+
  list.[[append]]
 +
  list.[[insert]]
 
  list.[[pop]]
 
  list.[[pop]]
 
  .../...
 
  .../...
Line 16: Line 18:
 
* [[Set]]
 
* [[Set]]
 
* [[Python array structure]]
 
* [[Python array structure]]
 +
* [[Linked list]]
  
 
== See also ==
 
== See also ==
 +
* {{list}}
 
* {{Python}}
 
* {{Python}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Latest revision as of 05:05, 13 November 2024

Advertising: