Schedule

Schedule

Sunday, March 29

1427666400 This Week in Tech

Monday, March 30

1427734800 Tech News Today
1427738400 Triangulation
1427743800 iPad Today
1427751000 Coding 101
1427756400 Tech News 2Night

Tuesday, March 31

1427821200 Tech News Today
1427824800 MacBreak Weekly
1427833800 Security Now
1427842800 Tech News 2Night
1427846400 All About Android

Wednesday, April 1

1427902200 FLOSS Weekly
1427907600 Tech News Today
1427911200 Windows Weekly
1427918400 This Week in Google
1427929200 Tech News 2Night
1427931000 Android App Arena
1427936400 Ham Nation

Thursday, April 2

1427994000 Tech News Today
1427997600 Know How...
1428003000 Marketing Mavericks
1428008400 Home Theater Geeks
1428015600 Tech News 2Night
1428017400 The Giz Wiz

Friday, April 3

1428080400 Tech News Today
1428084000 This Week in Law
1428094800 Before You Buy
1428102000 Tech News 2Night
1428105600 Padre's Corner

Saturday, April 4

1428170400 The Tech Guy

Sunday, April 5

1428256800 The Tech Guy
1428271200 This Week in Tech

Monday, April 6

1428339600 Tech News Today
1428343200 Triangulation
1428348600 iPad Today
1428355800 Coding 101
1428361200 Tech News 2Night

Tuesday, April 7

1428426000 Tech News Today
1428429600 MacBreak Weekly
1428438600 Security Now
1428447600 Tech News 2Night
1428451200 All About Android

Wednesday, April 8

1428507000 FLOSS Weekly
1428512400 Tech News Today
1428516000 Windows Weekly
1428523200 This Week in Google

Most Recent Episodes

The Tech Guy
The Tech Guy 1173 March 28th, 2015

Meerkat vs. Periscope

This Week in Enterprise Tech

HP Aims New Rack at Open Stack Developers

Before You Buy

Parrot Bebop Preview, Vivitek Qumi Q5 projector

Tech News 2Night

Tech elite likes to go racing

This Week in Law

Creative Commons Licenses 101 with Sarah Pearson.

Tech News Today

Blackberry posts a profit!

This Week in Computer Hardware

Silverstone Fortress FT05 case, Dell XPS 13 review, and Corsair Dominator memory kits.

The Giz Wiz

Condiments for pets, mini tennis ball launcher, Goatee Saver, and more.

Home Theater Geeks

Composer Richard Einhorn, MTI's Kevin Manbeck, and restoring "The Passion of Joan of Arc."

Tech News 2Night

Twitter releases Periscope!

Coding 101 12

Lists[Python]

April 10 2014

Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

Guest: Dale Chase

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!

Snubs Compiled

Recap how to download Python on your machine.
1. Go to: Python.org
2. Download Python 2.7.6 MSI Installer and Program Database.(This is important... 3.4.0 is NOT compatible with our lessons)

How to Open a script
1. You can download the ZIP file of all the Python programs on our github.
2. Double click the script to make it run.
3. Right click to edit in IDLE.
4. To start your own code: Open Notepad, write your code and save as a .py. OR, open IDLE, create a NEW FILE, write your code, then save it as a .py.

User Submissions
Benjamin's Asking Program
Santi Esco's Name and Age Script

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

Ivory Tower

Structured Data in Python
* Data Structures are important because they allow us to not only store data, but to make correlations between sets of data.
* Correlated data is an important piece in being able to break down the world into a computer language

One of the most basic data structures in Python is the LIST
* A list is a sequence of variables connected to one another
* The Syntax for a list is:

"NameOfList = [value1, value2, value3, value4];
The name of your list = [values];"

To access the values contained within the list, you use the syntax:
"

NameOfList[index]
"

Where "index" is a number between 0 and the number of values in your list-1

Example:

c101 = ['PadreSJ', 'Snubs', 'Dale Chase', 'Cranky_Hippo'];

Will create a list named "c101" with entries 0-3 with the values of "PadreSJ", "Snubs", "Dale Chase", and "Cranky_Hippo"

If we wanted to access that list, we could write:

print ""The Following are members of the Coding 101 team:", c101[0], c101[1], c101[2], c101[3]"

I could also update the values in the list by using the name of the list and the index I want to change:

Example:
c101[3] = "Bryan Burnett"

Will change the value of the 4th element from "Cranky Hippo" to "Bryan Burnett"

Get in Touch With Us!

* Subscribe and get Coding 101 automatically at TWiT.tv!
* Follow PadreSJ and Snubs on Twitter.
* Watch the show live and join the chatroom every Thursday at 1:30pm PST.
* Email us at Padre@twit.tv and Shannon@twit.tv.
* Join our Google+ Community!

Download or subscribe to this show at twit.tv/code. Also, check out our transcripts.

Bandwidth for Coding 101 is provided by Cachefly.

Running time: 41:31