Skip to content

Commit 2b59e94

Browse files
committed
practica 7
1 parent 802bcc8 commit 2b59e94

File tree

3 files changed

+584
-445
lines changed

3 files changed

+584
-445
lines changed

Diff for: 04 - Estructuras de datos/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ Gris
8484
>>> print(['a','b','c'] * 3)
8585
['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']
8686
```
87+
* Ordenar una lista de menor a mayor
88+
```python
89+
>>> lista= [1,4,3,6,8,2]
90+
>>> lista.sort()
91+
>>> print(lista)
92+
[1,2,3,4,6,8]
93+
```
94+
* Ordenar una lista de mayor a menor
95+
```python
96+
>>> lista= [1,4,3,6,8,2]
97+
>>> lista.sort(reverse=True)
98+
>>> print(lista)
99+
[8,6,4,3,2,1]
100+
```
87101

88102
### Tupla
89103

0 commit comments

Comments
 (0)