0

What happens to the original print_text function when the same name (print_text) is used for the new variable?

23rd Dec 2015, 7:10 AM
kris
2 Answers
0
It is deleted from the memory, same as this example with integers: x=123 y=2 x=y both x y are 2, and the 123 value us now gone.
31st Dec 2015, 11:36 AM
Omri Shayo
Omri Shayo - avatar
0
when you call a function like for example print_text(x) the function is simply used and not written again. The function retains its definition but only differs by the values inputted in it. Example print_text(ch1) print_text(ch2) They only differ by the value of the passed variable
8th Jul 2016, 5:37 PM
Athreyan MKS
Athreyan MKS - avatar