def triple(sequence):
result=[]
for element in sequence:
result=result+[element*3]
return result
triple([1])
[3]
def set_a():
a=10
print('The value of a:',a)
set_a()
The value of a: 10
a=20
print('Initially, the value of a:'),a
set_a()
print('Finally, the value of a:'),a
Initially, the value of a: The value of a: 10 Finally, the value of a:
(None, 20)