[Python] I am a beginner in python, can someone please explain me this piece of code in detail?

Discussão em 'Python' iniciado por Stack, Abril 20, 2025.

  1. Stack

    Stack Membro Participativo

    marks = [95, 98, 97]

    i = 0
    while i < len(marks):
    print(marks)
    i = i + 1



    I want to understand this print(marks) and i = i + 1, what is its use here and why can it not be written before print function?

    I am learning about while loop in list data type and I am not able to understand this code.

    Continue reading...

Compartilhe esta Página