karel

Python conditions with parenthesis in a while not loop

Python conditions with parenthesis in a while not loop Question: So I’m learning programming with Karel and I’m a little confused about conditionals with parenthesis and specifically what would happen in a loop. def build_line(): while not (front_is_blocked() or beeper_is_present()): face_east() put_beeper() move() def build_line(): while not front_is_blocked() or not beeper_is_present(): face_east() put_beeper() move() In …

Total answers: 3