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
val = 1000
match val:
0..100: print 'at or between 0 and 99'
100: print 'val is 100'
200:
print 'val is 200'
300, 400:
print 'combined case'
else:
print 'val is {val}'
The error I get is:
ParseError: Expected comma or colon.
main:3:6:
0..100: print 'at or between 0 and 99'
^
The text was updated successfully, but these errors were encountered:
The matching example from Docs throws an error in the online playground.
The error I get is:
The text was updated successfully, but these errors were encountered: