This function fetches a game level based on the choice of a user. The choices are sent as a string although if we were to change this to send it as an int (from HTML) this would fail because of the strip() call before converting to int. The strip call is unnecessary because Python itself does remove any leading and trailing whitespace from the string before converting
This function fetches a game level based on the choice of a user. The choices are sent as a string although if we were to change this to send it as an int (from HTML) this would fail because of the
strip()
call before converting toint
. The strip call is unnecessary because Python itself does remove any leading and trailing whitespace from the string before converting