Example from the book. Variable differs but works! Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Example from the book. Variable differs but works! Why?

https://code.sololearn.com/cg9EMVsOl6HG/#py Can Python understand itself define plural or not?

10th Jul 2018, 7:20 AM
Arthur P
Arthur P - avatar
1 Answer
+ 1
you could use any combination of letters there. example: for vwl in found: print(vwl) here vwl is used locally, in the for loop. So, no, Python does not know plural but uses the variable u defined.
10th Jul 2018, 7:45 AM
davy hermans
davy hermans - avatar