You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit: f5d2ab5
There was a mistake in the condition of the WHILE loop that was being used as a validation for UpTrip.
it was using AND whereas it should've used OR. AND have been replaced with OR
All the files have been corrected and updated.
Before:
WHILE choice = True DO
PRINT "Enter Train number corresponding to your departure hour: "
INPUT UpTrip
WHILE UpTrip < 0 AND UpTrip > 3 DO
PRINT "Error! Enter train number from (0, 1, 2, 3): "
INPUT UpTrip
ENDWHILE
After:
WHILE choice = True DO
PRINT "Enter Train number corresponding to your departure hour: "
INPUT UpTrip
WHILE UpTrip < 0 OR UpTrip > 3 DO
PRINT "Error! Enter train number from (0, 1, 2, 3): "
INPUT UpTrip
ENDWHILE
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
commit: f5d2ab5
There was a mistake in the condition of the WHILE loop that was being used as a validation for UpTrip.
it was using AND whereas it should've used OR.
AND have been replaced with OR
All the files have been corrected and updated.
Before:
After:
Beta Was this translation helpful? Give feedback.
All reactions