
-----------------------------------
AndresDM
Mon Feb 10, 2014 7:40 pm

Split lines in python 2.7
-----------------------------------
I need to attach the following statement:

print urls

Out:
[code]
   htt://www.myweb0.com
 
   htt://www.myweb1.com
 
   htt://www.myweb2.com

   htt://www.myweb3.com

....
[/code]
Converter In out:

a = urls

a = ["htt://www.myweb0.com", "htt://www.myweb1.com", "htt://www.myweb2.com" "htt://www.myweb3.com", "....","....." ]

print(random.choice([a]))

Thanks for your help.

-----------------------------------
Raknarg
Mon Feb 10, 2014 9:32 pm

RE:Split lines in python 2.7
-----------------------------------
I don't really get what you're asking for
