To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 8798c2ae authored by vermeul's avatar vermeul
Browse files

Update 07-Built-in_Functions.md

parent d866cfff
......@@ -36,10 +36,11 @@ print(string[:1].upper() + string[1:])
Splitting a string by specifying a delimiter is very easy:
```
parts = 'a sentence with many words'.split(' ')
parts = 'a sentence with some words'.split(' ')
# parts = ['a', 'sentence', 'with', 'some', 'words']
```
However, when you are expecting a given number of values and want to directly assign them to the values, you'll run into ValueError:
However, when you are expecting a given number of values (e.g. firstname and lastname) and want to directly assign them to variables, you'll run into ValueError:
```
firstname, lastname= 'Voldemort'.split(' ')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment