GooseterV / Project-Euler

Block comment should start with # FLK-E265
Style
Minor
2 years ago2 years old
block comment should start with '# '
3	# total = 0
4	# for i in range(0, 1001):
5	#	if i % 3 == 0 || i % 5 == 0:
6	#		total += 17	# print(total)
8	return sum(i for i in range(0, 1001) if i % 3 == 0 or i % 5 == 0)
9print(main())
block comment should start with '# '
2	# shorthand for
3	# total = 0
4	# for i in range(0, 1001):
5	#	if i % 3 == 0 || i % 5 == 0:6	#		total += 1
7	# print(total)
8	return sum(i for i in range(0, 1001) if i % 3 == 0 or i % 5 == 0)