Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-02 19:28:35 +02:00
parent 98b5f67412
commit bff03eb7f4
23 changed files with 72 additions and 51 deletions

View File

@ -1,6 +1,6 @@
---
title: shuffle
tags: list,random,intermediate
tags: list,random,advanced
---
Randomizes the order of the values of an list, returning a new list.
@ -23,6 +23,6 @@ def shuffle(lst):
```
```py
foo = [1,2,3]
shuffle(foo) # [2,3,1], foo = [1,2,3]
foo = [1, 2, 3]
shuffle(foo) # [2, 3, 1], foo = [1, 2, 3]
```