1def function():
2 print('This is a basic function')
3
4function()
5// Returns 'This is a basic function'
6
7def add(numA, numB):
8 print(numA+numB)
9
10add(1,2)
11// Returns 3
12
13def define(value):
14 return value
15
16example = define('Lorem ipsum')
17print(example)
18// Returns 'Lorem ipsum'
19
20
1>>> numbers = [2, 1, 3, 4, 7]
2>>> more_numbers = [*numbers, 11, 18]
3>>> print(*more_numbers, sep=', ')
42, 1, 3, 4, 7, 11, 18
5