0

What is a placeholder name?

like foo and bar are placeholder names!!

11th Jun 2018, 10:11 AM
Saurav Sikdar
Saurav Sikdar - avatar
2 Respostas
+ 1
foo and bar aren't any kind of special variables, foo and bar are mostly used on strings and variable names in example codes. those placeholder names might be used to tell, that you can use other names for variable or contents of strings of choose. also in examples manually defined classes and functions often use MyClass or MyFunc kind of names, anyways Python often uses spam and eggs as placeholder variables as you might already know.
11th Jun 2018, 11:06 AM
Seb TheS
Seb TheS - avatar
0
thank you
11th Jun 2018, 2:06 PM
Saurav Sikdar
Saurav Sikdar - avatar