Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45924

Re: Prepending string "@" to usernames

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <thomasmurphymusic@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.177
X-Spam-Level *
X-Spam-Evidence '*H*': 0.69; '*S*': 0.04; 'subject:string': 0.09; 'cc:addr:python-list': 0.11; 'for?': 0.16; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'maybe': 0.34; 'received:google.com': 0.35; 'thank': 0.38; "you're": 0.61; 'address': 0.63; 'thomas': 0.65; 'to:addr:gmail.com': 0.65; 'dan.': 0.84; 'perfect!': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5THznOZnx/L1YA3+s32PN+Mpfvi9inAlWjzlgyP4FKw=; b=pgKBGyfFlTO30Ix/aLUBjXta8k+Xw1eBwZ+ZOmF92sX/zSdldRRBZKK/cWk33n8vU5 CjKUIB2Iur07CLF11h1vtPiVmj7sLFdYWA8ePZ+aMiuJQ0ygrAmsi71ZF8ttgiJYvrIT jv2jupmDTkKZMSyqYfFt7yt6pkxSjHl/kpzRvU9wzuKNELHeesZk5xmaI21y2PXsL/p4 MHQits/ZF5pjkBv/7/DvjPx4Xb6r67UEIKpojhYE1srCLHhCL/xi6M8AeMpvkcqsrqLL iz3fibg3GwjvoZSawP0OLP3Yn+UeEN/hGOp1MLbTEVwopGyRRoBWSJetegqiil+pe4fu bqIQ==
MIME-Version 1.0
X-Received by 10.50.7.66 with SMTP id h2mr657858iga.31.1369436671853; Fri, 24 May 2013 16:04:31 -0700 (PDT)
In-Reply-To <CAGGBd_okY709NyG0BBZSHzv709oTAUNbicMgfOMjo3LjFDipwQ@mail.gmail.com>
References <CAEcwjcx6WtUMTg=QpqjEZ3fyfUhOLWQ2v-pF4qQ9ypFd3DtByA@mail.gmail.com> <CAGGBd_okY709NyG0BBZSHzv709oTAUNbicMgfOMjo3LjFDipwQ@mail.gmail.com>
Date Fri, 24 May 2013 19:04:31 -0400
Subject Re: Prepending string "@" to usernames
From Thomas Murphy <thomasmurphymusic@gmail.com>
To Dan Stromberg <drsalists@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2083.1369436680.3114.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369436680 news.xs4all.nl 15918 [2001:888:2000:d::a6]:46446
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45924

Show key headers only | View raw


> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Prepending string "@" to usernames Thomas Murphy <thomasmurphymusic@gmail.com> - 2013-05-24 19:04 -0400

csiph-web