"""
Perfiles de hierro while
""""" 
cantidad=0
x=1
n=int(input("Cantidad de piezas a cargar: "))
while x<=n:
    longitud =float(input("Ingrese la longitud de la pieza: "))
    if longitud>=1.20 and longitud<=1.30:
        cantidad=cantidad+1
    x=x+1
print("La cantidad de piezas aptas son")
print(cantidad)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: