a = 1
factorial = 1
while a <=4:
    factorial = factorial * a
    a = a +1
print(factorial)

#if you wanted you could use while on the factorial instead

a = 1
factorial = 1
while factorial <24:
    factorial = factorial * a
    a = a +1
print(factorial)

#additionally < 5 or <= 23 works too 
