+ 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.

24th Mar 2020, 4:23 PM
ERIC OKPOTI
ERIC OKPOTI - avatar
4 Antworten
+ 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.
24th Mar 2020, 4:28 PM
XXX
XXX - avatar
+ 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).
24th Mar 2020, 5:05 PM
Oneill~Онеилл~奥尼尔~ओनील~اونیل~*‎
Oneill~Онеилл~奥尼尔~ओनील~اونیل~*‎ - avatar
+ 1
Am sure it does not matter provided it follows the rule in declaring a variable.
24th Mar 2020, 4:59 PM
ERIC OKPOTI
ERIC OKPOTI - avatar