TWiT Throwback (Audio)

TWiT Throwback (Audio)

Download on the App Store

TWiT Throwback (Audio) episodes

  • Coding 101 17: Python: Tuples

    Welcome to Coding 101 - It's the TWiT show that gives YOU the knowledge to live in the wonderful world of the programmer. This week we are introducing our newest module, Python with Code Warrior Dale Chase!

    To see all the code used in today's episode, go to Our Github Repository for Module 2

    Printing Everything within a List:

    The way we've been printing lists is to use a "for loop" to print everything within the list:

    podcasters = ['Leo','Lisa','Padre', 'Snubs', 'Bryan', 'OMGchad']

    for entries in range (0,6):

    - print podcasters[entries]

  • This will print each individual entry on its own line.
  • If we JUST wanted to know the contents of the list:

    mylist = [142, 512, 'dog', 'cat', 'bird', 123]

    print mylist

  • This will print EVERYTHING that is in the list "mylist" - including the comas, spaces and brackets
  • Sorting the List

  • We've been using "destructive sorting" with the "list.sort()" function
  • When we use "sort()" on a list, we sort "IN PLACE" which destroys the original list
  • SortMe = [1, 23, 6, 4, 99]

    for entries in range (0,5):

    - print SortMe[entries]

    raw_input ("Press Enter")

    SortMe.sort();

    for entries in range (0,5):

    - print SortMe[entries]

    NON-DESTRUCTIVE SORTING

  • We can do a non-destructive sorting of a list.
  • It keep the original list while sorting the data.
  • podcasters = ['Leo','Lisa','Padre', 'Snubs', 'Bryan', 'OMGchad', 1234]

    print podcasters

    print "Woot, let's sort!"

    sortedpodcasters = sorted(podcasters)

    raw_input("Press Enter to Continue")

    print podcasters

    print sortedpodcasters

  • We can ALSO sort WITHOUT creating a new list
  • podcasters = ['Leo','Lisa','Padre', 'Snubs', 'Bryan', 'OMGchad', 1234]

    print sorted(podcasters)

    Tuples

  • Tuples work like lists, but they are immutable. They cannot be changed.
  • They use parentheses instead of brackets
  • You can have a list of tuples.
  • twit_tuples = [

    ('Padre', 'TWiET', 72),

    ('Snubs', 'C101', 22),

    ('Bryan', 'KnowHow', 6),

    ]

    print twit_tuples

    Sorting Tuples

    twit_tuples = [

    ('Padre', 'TWiET', 72),

    ('Snubs', 'C101', 22),

    ('Bryan', 'KnowHow', 6),

    ]

    print sorted(twit_tuples, key=lambda twit: twit[2])

    Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

    Guest: Dale Chase

    Get in Touch With Us!
  • Subscribe and get Coding 101 automatically at https://twit.tv/shows/coding-101.
  • Follow PadreSJ and Snubs on Twitter
  • Bandwidth for Coding 101 is provided by CacheFly.

    Sponsors:

    • hover.com promo code: C101
    • lynda.com/c101
    • 54 min
    • OMGcraft 160: Spotlight: Captive Minecraft

      Chad demonstrates Captive Minecraft, where you need to complete achievements to expand the border around you.

      Host: Chad Johnson

      Follow us on YouTube: https://www.youtube.com/omgcraft

      Thanks to CacheFly for the bandwidth for this show.

      9 min
    • The Social Hour 162: Patreon Co-Founder & CEO Jack Conte

      Amber & Sarah chat with Patreon Co-Founder and Pomplemoose star Jack Conte about artists, music, and making the most money possible, Pinterest rolls out ads, mute Twitter users without unfollowing, & more!

      Hosts: Amber MacArthur and Sarah Lane

      Guest: Jack Conte

      Download or subscribe to this show at https://twit.tv/shows/social-hour.

      Bandwidth for The Social Hour is provided by CacheFly.

      Sponsor:

      • 99designs.com/socialhour
      • 59 min
      • Tech News Today 1008: What Will It Be, FCC?

        The FCC meets to decide the future of net neutrality in the United States, Google gets flooded with take-down requests in Europe to remove links, Apple's acquisition of Beats misses a beat, and more.

        Hosts: Mike Elgan and Jason Howell

        Guests: Robert Hernandez, Sebastian Anthony, Jon Healey, Alex Wilhelm, and Julian Hattem

        Download or subscribe to this show at https://twit.tv/shows/tech-news-today.

        Check out the full show notes for today's episode.

        Thanks to CacheFly for the bandwidth for this show.

        Sponsor:

        • squarespace.com offer code TNT
        • 43 min
        • The Giz Wiz 1468: Make Relax Time

          Paper you can write on when its wet, Glue Dots adhesives, decorative LED ice cubes, and more.

          Hosts: Dick DeBartolo and Chad Johnson

          Download or subscribe to this show at https://twit.tv/shows/weekly-daily-giz-wiz.

          For more details and a chance to win the Mad Magazine "What The Heck Is It?" contest, visit GizWiz.Biz.

          Bandwidth for The Giz Wiz is provided by CacheFly.

          Sponsor:

          • ifixit.com/twit enter code GIZWIZ
          • 1 hr 5 min
          • This Week in Google 249: Slow Talkers

            The right to be forgotten on Google, the real cost of Glass, things to look for at I/O, and more.

            Hosts: Leo Laporte, Gina Trapani, and Jeff Jarvis

            Download or subscribe to this show at https://twit.tv/shows/this-week-in-google.

            Thanks to CacheFly for the bandwidth for this show.

            Sponsors:

            • fullsail.edu/twig
            • 99designs.com/twig
            • personalcapital.com/twig
            • 1 hr 40 min
            • Tech News 2Night 87: The NSA/Microsoft Connection

              How the NSA used Skype and Outlook in data collection, photos from inside an NSA intercept room, Glenn Greewald's book on Edward Snowden is released, Google must comply with the "right to be forgotten," Snapchat tops Whatsapp in the U.S., Surface Pro 3 might be unveiled, reports of iPhone 6 in testing with larger screen, Microsoft makes changes to the Xbox One, George R. R. Martin uses a DOS computer to write 'Game of Thrones,' and Flappy Bird to return as a less addictive version.

              Host: Sarah Lane

              Guest: Bridget Carey

              Download or subscribe to this show at https://twit.tv/shows/tech-news-2night.

              Bandwidth for Tech News 2Night is provided by CacheFly.

              12 min
            • Windows Weekly 362: Xbox on Prem

              All the news from TechEd, a cheaper Xbox One without Kinect, Surface Pro 3, Outlook.com update, and more.

              Hosts: Paul Thurrott, Mary Jo Foley, and Leo Laporte

              Download or subscribe to this show at https://twit.tv/shows/windows-weekly.

              Check out Paul's blog at the SuperSite for Windows.

              Check out Mary Jo's blog at the AllAboutMicrosoft.com.

              Thanks to CacheFly for the bandwidth for this show. The Windows Weekly theme music is courtesy of Derek K. Miller.

              Sponsors:

              • lynda.com/windows
              • itpro.tv/ww use the code WW30
              • ShareFile.com offer code WINDOWS
              • 1 hr 44 min
              • FLOSS Weekly 294: Digital Public Library of America

                The Digital Public Library of America brings together the riches of America's libraries, archives, and museums, and makes them freely available to the world.

                Mark A. Matienzo is the Director of Technology for the Digital Public Library of America, Mark Breedlove is the Technical Specialist for the Digital Public Library of America.

                Hosts: Randal Schwartz and Dan Lynch

                Guests: Mark A. Matienzo and Mark Breedlove

                Download or subscribe to this show at https://twit.tv/shows/floss-weekly.

                Here's what's coming up for FLOSS in the future. Think your open source project should be on FLOSS Weekly? Email Randal at [email protected].

                Thanks to CacheFly for providing the bandwidth for this podcast, and Lullabot's Jeff Robbins, web designer and musician, for our theme music.

                1 hr 9 min

              About TWiT Throwback (Audio)

              From the publisher's feed

              Dig into the TWiT.tv archives and enjoy episodes from ten years ago. It's a tech time machine!

              More shows like TWiT Throwback (Audio)

              Total Leo (Audio) by TWiT

              Total Leo (Audio)

              202 Listeners

              TWiT News (Audio) by TWiT

              TWiT News (Audio)

              78 Listeners

              All TWiT.tv Shows (Audio) by TWiT

              All TWiT.tv Shows (Audio)

              358 Listeners

              TWiT Events (Audio) by TWiT

              TWiT Events (Audio)

              8 Listeners

              Total Mikah (Audio) by TWiT

              Total Mikah (Audio)

              3 Listeners

              Untitled Linux Show (Audio) by TWiT

              Untitled Linux Show (Audio)

              7 Listeners

              Host-Read Ads (Audio) by TWiT

              Host-Read Ads (Audio)

              3 Listeners