Tema/Programação/PythonTema/Programação/PythonTema/Programação/Python
Uma [Lista Python](https://www.w3schools.com/python/python_lists.asp) (List) permite armazenar qualquer tipo de variável. Para criar uma lista, use colchetes e vírgulas, como mostrado abaixo. Assim como as strings, você pode imprimir uma lista inteira ou alguns elementos individuais. Você também pode adicionar elementos a uma lista usando `Append` e ordenar uma lista usando `Sort`.
```python
Names = ["Harry", "Ron", "Hermione"] # Starts a list of 3 names
Print (names) # Print the entire list
Print (Names [1]) # Print the second element on the list, Indexes start at 0!
Names.append ("Draco") # Add a new name to the list at the end of the list
names.sort () # orders the list
Print (names) # Print the new list
# Results in:
# ['Harry', 'Ron', 'Hermione']
# Ron
# ['Draco', 'Harry', 'Hermione', 'Ron']
```
**:: Referência::** [Documentação Python sobre tipos nativos](https://docs.python.org/3/library/stdtypes.html)