n = list(map(int, input().split()))
print(sum([i**2 for i in range(n[0], n[-1]+1)]))
from math import *
n1 = (prod([i for i in range(n[0], n[-1]+1) if str(i*6)[-1] == '2']))
print(*[n1 if n1>1 else 0])
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = list(map(int, input().split()))
print(sum([i**2 for i in range(n[0], n[-1]+1)]))
from math import *
n = list(map(int, input().split()))
n1 = (prod([i for i in range(n[0], n[-1]+1) if str(i*6)[-1] == '2']))
print(*[n1 if n1>1 else 0])