I have more than 15200 links to websites which I need to shuffle.
If I had a small number of websites, I can enter them manually into python and use the following code to shuffle them:
from random import shuffle
x = ['website_1', 'website_2', 'website_3', 'website_4', 'website_5']
shuffle(x)
But entering more than 15200 links manually into a list is extremely time consuming because I would have to put quotation marks on them individually.
At the moment, I have the links in the following form:
website_1
website_2
website_3
.
.
.
website_15270
Is there a way I can enter the the website in the format shown above and have them shuffled and returned in the same format?