New course! Every coder should learn Generative AI!
Try a free lesson0
How to modify values
using functions
2 Answers
0
modify what type of values using functions?
please try to be a bit more clear
0
do you mean:
def add_one(a)
a = a + 1
return a
a = 2
a = add_one(a)
print(a)
output: 3