5
Maoyuan Xue
Last seen 8 years ago
Member for 10 years, 2 months, 3 days
Difficulty Normal
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment oduvan: you can use print function to trace each if statement |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment macfreek: Trace what happens if a number is divisible by 15. The statement in line 5 would be True, and in lin... |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment beistvan: Use "and" logical operator instead "&" operator. |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment bryukh: Because range(1, 2, 3) == [1] Try to read about "range". |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment bryukh: Show your new code. |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment bryukh: Of course, i fixed only one error. "sum" is a builtin function, thus this is a bad name for variable... |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment bryukh: line 8 for i in range(len(array)): |
Nov. 23, 2017, 1:45 p.m. | + 1 | for Comment oduvan: first of all use 'and' not '&' |