I generally try to avoid this pattern with something like a list comprehension, but didn't see an obvious solution so I just went with it.
The only way I can think of right now, if you want to declare your tags as a short version of the real ones (py for python, web for webdev) would be to use a dictionary:
reg_tags = {"py":"python", "web":"webdev", "blog":"blog", "data":"data"}
tags = [reg_tags[tag] if tag in reg_tags.keys() else tag for tag in sys.argv[2:] ]
Not pretty, but it allows you to use the short tags and also include new ones for a specific post
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The only way I can think of right now, if you want to declare your tags as a short version of the real ones (py for python, web for webdev) would be to use a dictionary:
Not pretty, but it allows you to use the short tags and also include new ones for a specific post