0
Whats wrong with that?
x = a + b for i in range(6): a = (i*2) b = -i if a>10: break print(x)
4 Answers
+ 7
a, b not defined
+ 3
your first line x= a+b should be moved to just before the print line. so that a and b have actual values assigned.
+ 1
def int(a,b): is not working either
+ 1
thank you!