How to modify values | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How to modify values

using functions

29th Sep 2018, 4:18 PM
vanathi
vanathi - avatar
2 Respuestas
0
modify what type of values using functions? please try to be a bit more clear
29th Sep 2018, 4:32 PM
RZK 022
RZK 022 - avatar
0
do you mean: def add_one(a) a = a + 1 return a a = 2 a = add_one(a) print(a) output: 3
29th Sep 2018, 4:50 PM
Kevin Dietrichstein
Kevin Dietrichstein - avatar