+ 2
for v in enumerate(nums): print(v)
Why did they use v. Because I tried with different alphabets and it worked. Away reason for the v.
4 Réponses
+ 4
No, there is reason for taking a specific letter. You can take any letter in place of v. Not just letter, you can take words, for example num, val etc.
+ 3
V for Vendetta... ✌️
🙄 eh, sorry no, it's just "v" like Variable.
It's a shortcut or memonic technic, like "i" for Iterable (in FOR loop)
But you always can use another name (or letter).
+ 1
Am sure it does not matter provided it follows the rule in declaring a variable.