Schedule

Schedule

Sunday, December 21

1419188400 The Tech Guy
1419202800 This Week in Tech

Monday, December 22

1419271200 Tech News Today
1419274800 Triangulation
1419280200 iPad Today
1419292800 Tech News 2Night

Tuesday, December 23

1419357600 Tech News Today
1419361200 MacBreak Weekly
1419368400 Security Now
1419375600 Before You Buy
1419379200 Tech News 2Night
1419382800 All About Android
1419391800 Padre's Corner

Wednesday, December 24

1419444000 Tech News Today
1419447600 Windows Weekly
1419454800 This Week in Google
1419465600 Tech News 2Night

Thursday, December 25

1419530400 Tech News Today
1419534000 Know How...
1419537600 Marketing Mavericks
1419543000 Coding 101
1419546600 Home Theater Geeks
1419553800 The Giz Wiz

Friday, December 26

1419616800 Tech News Today
1419638400 Tech News 2Night

Saturday, December 27

1419706800 The Tech Guy

Sunday, December 28

1419793200 The Tech Guy
1419807600 This Week in Tech

Monday, December 29

1419876000 Tech News Today
1419879600 Triangulation
1419885000 iPad Today
1419897600 Tech News 2Night

Tuesday, December 30

1419962400 Tech News Today
1419966000 MacBreak Weekly
1419973200 Security Now
1419980400 Before You Buy
1419984000 Tech News 2Night
1419987600 All About Android
1419996600 Padre's Corner

Wednesday, December 31

1420043400 FLOSS Weekly

Most Recent Episodes

The Tech Guy
The Tech Guy 1145 December 20th, 2014

Is North Korea responsible for the Sony hack?

Tech News 2Night

BBC says Apple mistreats factory workers.

This Week in Law

Photojournalist claims a blog infringes his copyright of the monkey selfie.

Tech News Today

The BBC has aired a new documentary slamming Apple

This Week in Computer Hardware

AMD Omega Driver, mechanical keys, and Broadwell NUC pics.

The Giz Wiz
Episode #1498: Inflate My Ego December 18th, 2014

TalkBand, disco lights, inflatable chair, and more!

Home Theater Geeks

Multichannel audio, speaker placement, and multiple subwoofers.

Tech News 2Night

A Security Flaw in Millions of Routers

Coding 101

Polishing up the holiday pricer.

Know How...

In case you didn't know this is Episode 123

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