Skip to content
Advertisement

make a list and limit only the input in single character using python.if the user input two characters it will be invalid

JavaScript

This is my code and I don’t know how to detect a single character. If a user input two character they will get an error but if the user input single character the input item will be in the list.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement