diff options
-rw-r--r-- | robot/problems/introduction/wall1m/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/problems/introduction/wall1m/common.py b/robot/problems/introduction/wall1m/common.py index 319cea2..2a93573 100644 --- a/robot/problems/introduction/wall1m/common.py +++ b/robot/problems/introduction/wall1m/common.py @@ -41,7 +41,7 @@ hint_type = { def hint( code ): tokens = get_tokens(code) - lines = code.split('\n') + lines = code.split('\n') # if code does not include mindstorms_widgets(), a student gets a hint that the robot should be somehow represented in the program if not has_token_sequence(tokens, ['mindstorms_widgets', '(',')']): @@ -65,7 +65,7 @@ def hint( code ): return [{'id': 'moveSteeringOff'}] #if not (has_token_sequence(tokens, ['ultrasonic_sensor_measure', '(']) and 'distance-cm' in code): - if not any(('ultrasonic_sensor_measure' in s and '(' in s and 'distance-cm' in s) for s in lines) + if not any(('ultrasonic_sensor_measure' in s and '(' in s and 'distance-cm' in s) for s in lines): return [{'id': 'ultrasonicSensorMeasure'}] if not any(('power' in s and '80' in s and '=' in s) for s in lines): |