I'm new to programming with python and programming in general and got stuck wit the following problem:
b=["hi","hello","howdy"]
for i in b:
print i
#This code outputs:
hi
hello
howdy
How can I make it so the iterating variable is an int so it works the following way?
b=["hi","hello","howdy"]
for i in b:
print i
#I want it to output:
0
1
2