Open pdawyndt opened 4 years ago
Some code samples could be rewritten as interactive sessions. For example:
fruitlist = ["apple", "banana", "cherry", "durian", "orange"] print( fruitlist ) fruitlist[1:3] = [] print( fruitlist )
could be rewritten as
>>> fruitlist = ["apple", "banana", "cherry", "durian", "orange"] >>> print( fruitlist ) ['apple', 'banana', 'cherry', 'durian', 'orange'] >>> fruitlist[1:3] = [] >>> print( fruitlist ) ['apple', 'durian', 'orange']
Convert to executable code snippets when Dodona adds support for this (https://github.com/dodona-edu/dodona/issues/1575).
Some code samples could be rewritten as interactive sessions. For example:
could be rewritten as