0

Whats wrong with that?

x = a + b for i in range(6): a = (i*2) b = -i if a>10: break print(x)

2nd Jan 2017, 1:58 PM
Angel Our
Angel Our - avatar
4 odpowiedzi
+ 7
a, b not defined
2nd Jan 2017, 1:59 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 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.
2nd Jan 2017, 3:46 PM
ifl
ifl - avatar
+ 1
def int(a,b): is not working either
2nd Jan 2017, 2:00 PM
Angel Our
Angel Our - avatar
+ 1
thank you!
2nd Jan 2017, 3:48 PM
Angel Our
Angel Our - avatar