Anonymous asked in Computers & InternetProgramming & Design · 2 weeks ago

What is the equivalent of the classic for (i=0; i < item.length; i++) in python ?

i can't find any YouTube videos that show how this might be done in python, then again I'm not bothering to search too hard so I decided to ask here. any python programmers wanna help ?

1 Answer

  • 2 weeks ago
    Favorite Answer

    # Python3 code to iterate over a list

    list = [1, 3, 5, 7, 9]

    # Using for loop

    for i in list:


Still have questions? Get your answers by asking now.