If it was >= then v could take the v = 0 value in the condition and then you would indeed have a division by 0. Without the = sign, the condition goes to the else part and no division by zero is performed.
You may consider using string.ascii_lowercase in place of 'abcdefgh' for best practices. This solution is much more computationally efficient than most the others.
Thank you very much FaradayLab!
Oh shit that's smart
I wish I thought of that
Check test cases , there is something wrong with data types.
yes (with the array longer are of length equal to 3)
Welp, I am dumb.
This is clever but definitely not best practice
it formats the value to display with 5 digits (d = digit)
pretty much what I did but using the language properly. very nice
That is great! You open my mind!
Nice solution. Love the simplicity and readability.
sometimes I am so stupid it is astounding. I make things so much harder than it needs to be
Not sure what are you referring to as the "loop". The argument passed in is a list so there is no need to transform it.