Thread: Lists

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Lists


    Hi guys brand new member here trying to study for my python final tomorrow and I'm having a little trouble. I'm trying to get the the first letter of each word in the list. So far I'm able to get the first letter of the first word but the others will not come along as easily. Any help is much appreciated.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Location
    39N 104.28W
    Posts
    158
    Rep Power
    3
    [a[0] for a in listofwords]

    Comments on this post

    • Dietrich agrees

IMN logo majestic logo threadwatch logo seochat tools logo