+ 2

What's wrong with my program?

It fails in test case 5 and test case 12 https://code.sololearn.com/cXy3UVlPd8Wp/?ref=app

8th Jun 2020, 6:17 PM
Sindbad
Sindbad - avatar
2 ответов
+ 4
Use 'and' rather than '&' in line 16. and is the and operator in Python, & is the bitwise intersection operator.
8th Jun 2020, 6:25 PM
Russ
Russ - avatar
+ 2
Russ thanks mate
8th Jun 2020, 6:42 PM
Sindbad
Sindbad - avatar