Can you please explain the code of answer 2
Title
Question
Can you please explain this code?
y=1
for x in range(1,21):
y *= x
print(y)
Python-3.4.3 Getting-started-with-for 09-10 min 40-50 sec
Answers:
This code multiplies the values from 1 to 20 and prints the product
y *= x is the same as y = y * x
Login to add comment