Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!nuzba.szn.dk!pnx.dk!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'string.': 0.05; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:string': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'for?': 0.16; 'wrote:': 0.18; 'print': 0.22; 'header:User- Agent:1': 0.23; 'url:moin': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'url:wiki': 0.31; 'safely': 0.31; 'url:python': 0.33; 'maybe': 0.34; 'url:org': 0.36; 'thank': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'remove': 0.60; 'read': 0.60; "you're": 0.61; 'address': 0.63; 'thomas': 0.65; 'charset:windows-1252': 0.65; 'dan.': 0.84; 'perfect!': 0.84; 'received:89': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Prepending string "@" to usernames Date: Sat, 25 May 2013 00:16:34 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-89-240-174-199.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: X-Antivirus: avast! (VPS 130524-0, 24/05/2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369437398 news.xs4all.nl 15888 [2001:888:2000:d::a6]:53321 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45927 On 25/05/2013 00:04, Thomas Murphy wrote: >> 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 > You can safely remove the call to str as address is already a string. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence