saving . . . saved Can you please explain the code of answer 2 has been deleted. Can you please explain the code of answer 2 has been hidden .
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 07-10-20, 8:15 a.m. swayla1414khanam@gmail.com

Answers:

This code multiplies the values from 1 to 20 and prints the product

y *= x is the same as y = y * x
14-10-20, 10:34 a.m. ankitrj.iitb


Log-in to answer to this question.