my_list = ["Harry", "Tom", "Jerry", "Marry", "Henry"] Each time I've to type quotes, "Name", comma Is there a way to do it faster ? Thank you in advance.(I'm using Pycharm)
my_list = ["Harry", "Tom", "Jerry", "Marry", "Henry"] Each time I've to type quotes, "Name", comma Is there a way to do it faster ? Thank you in advance.(I'm using Pycharm)
I had the same question and looked for an answer and didn´t finda. So the way I´ve found to do this was open only the first and last quotes, then added all strings I wanted only separating with 2 commas (,,) , after I had put all values in my list, I used the find and replace the 2 commas for quote, comma, quote (","). That´s the only way I found to simplificate this.
before:
my_list = ["Harry,,Tom,,Jerry,,Marry,,Henry"]
after find and replace:
my_list = ["Harry", "Tom", "Jerry", "Marry", "Henry"]