Skip to content

Instantly share code, notes, and snippets.

@defron
Last active March 20, 2024 04:45
Show Gist options
  • Select an option

  • Save defron/27cbb6d649579f4c96fe07b10bc1abda to your computer and use it in GitHub Desktop.

Select an option

Save defron/27cbb6d649579f4c96fe07b10bc1abda to your computer and use it in GitHub Desktop.
this is equivalent
user_input = input("Plate: ")
punc = [".", " ", "?", "-", "+", ",", "/", "=", "!", ")", "(", "_", ";", "|", "*", "@", "#", "$", "&", "^", "\\", "~"]
for character in user_input:
has_punc = character in punc
if(has_punc):
print("Invalid")
break
# LICENSE: https://spdx.org/licenses/MIT.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment