One quick question about variables within functions | SoloLearn: Learn to code for FREE!

0

One quick question about variables within functions

I often see codes like these: "def Insert_A_Function (A, B, C)" And then they keep using the A, B and C even though they haven't given those any values and it simply works. Why and how?

8/16/2020 9:34:38 AM

Ville Nordström

2 Answers

New Answer

+5

"def Insert_A_Function (A, B, C)" This is a function definition. The values for A, B, C are assigned when you call a function like Insert_A_Function(10, "def", 1.54); # this is a function call. This call will assign A = 10 B = "def" C = 1.54

+2

~ swim ~ ohh ok, thank you :)