Prepending string "@" to usernames
Thomas Murphy
thomasmurphymusic at gmail.com
Fri May 24 19:04:31 EDT 2013
> Maybe this is what you're looking for?
>
> raw_address = "cookielover93 TheGermanHatesSaurkraut WhatsThatBoy932834"
> address_library = raw_address.split()
> print address_library
>
> final_address = []
> for address in address_library:
> final_address.append("@" + str(address))
> print final_address
>
Exactly it. Thank you so much Dan. Perfect!
--
Sincerely,
Thomas Murphy
Code Ninja
646.957.6115
More information about the Python-list
mailing list