+ 1

What does the i mean?

22nd May 2017, 8:40 PM
FRANCISCO RUBIO FERNANDEZ
FRANCISCO RUBIO FERNANDEZ - avatar
11 odpowiedzi
+ 6
Lol trolls are disliking. i is just the name of the variable that holds the current value. You can change it to what ever you like.
22nd May 2017, 8:53 PM
Tim G
Tim G - avatar
+ 7
Lots of debate about what i means here: https://www.sololearn.com/discuss/208919/?ref=app
22nd May 2017, 9:02 PM
Michael Foster
Michael Foster - avatar
+ 4
@Mario, his question is legit
22nd May 2017, 8:50 PM
Tim G
Tim G - avatar
+ 4
@Mario Yes there are cases where it is confusing and where you would really have to guess. But this one was very obvious.^^
22nd May 2017, 9:13 PM
Tim G
Tim G - avatar
+ 3
@mario, look at the tags "i" + loop + python.
22nd May 2017, 8:54 PM
Tim G
Tim G - avatar
+ 2
is it? I don't know which "i" he means...
22nd May 2017, 8:53 PM
Mario L.
Mario L. - avatar
+ 2
yes, i, python and loops. could be the variable for the iterator. could be a typo... the linked posts tell you how to write good questions. I don't like guessing what someone means by looking at the tags and asking my crystal ball. the community guidelines are there for a reason. others won't know what he means without a sample code snippet or further explanation.
22nd May 2017, 8:58 PM
Mario L.
Mario L. - avatar
+ 2
I was always under the impression that i was shorthand for index. For example, when looping through an array we can use i to access the item at the ith index.
27th May 2017, 2:34 PM
Rudi Kershaw
Rudi Kershaw - avatar
0
i means i
22nd May 2017, 8:46 PM
Jonas Geiler
Jonas Geiler - avatar
- 1
Legit,but doesn't contain enough info,we haven't context.
22nd May 2017, 8:52 PM
Rose Sevenyears
Rose  Sevenyears - avatar