Mar-22-2023, 08:09 PM
When you
If you had an integer for some reason, just convert it to a string and handle it as above.
input()
from the console, it always comes in as text. So even if the user is typing "3451", you'll get that as a string. So using strings of digits is identical to using strings of letters. Other than changing the colorcode list to have digits, there shouldn't be anything much to do.If you had an integer for some reason, just convert it to a string and handle it as above.