machan 2nd eke code eka:
import random
M= random.randint(0,20)
print('This is the M: %d'%M)
b = 1
product = 1
while b <= M:
product = product * b
b += 1
if M == 0:
print(0)
else:
print(product)
machan tab gahala indentation hadaganin methana paste karapuwama ewa wenas...