+ 3
can someone tell me whats wrong with this?
x=0 sum=0 while x<=1000: if x%3==0 or x%5==0 : sum=sum+x x=x+1 else if: x=x+1 print(sum)
7 ответов
+ 13
error with colon::::::::::::::::::::::::::
+ 4
you have mistake with code on >>else if :<< 7th line of code (remove if)
+ 2
thanks
+ 2
python wala else if nehe java wala wage. elif thyenne
+ 2
you didn't set any condition to if
+ 1
indentation I guess
+ 1
else if does not exist.
use only else without the if