Listing 06-04: Repetition with fixed list size

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 06\06.04 - Repetition with fixed list size.py
# Description: Repetition with fixed list size
##############################################################################

L = [1, 2, 3]
x = 0
while x < 3:
    print(L[x])
    x += 1
Click here to download the file