10 lines
390 B
Org Mode
10 lines
390 B
Org Mode
*Drills
|
||
|
||
** The gold_room has a weird way of getting you to type a number. What are all the bugs in this way of doing it? Can you make it better than what I’ve written? Look at how int() works for clues.
|
||
|
||
Non greedy is less than 50 but only 1 and 0 qualify.
|
||
|
||
Nicer ways:
|
||
-> check for numbers
|
||
-> also check for None and All strings
|
||
-> sanitize input for int(), (int can take 2 variables)
|