Schedule

Schedule

Friday, May 29

1432918800 Tech News Today
1432922400 This Week in Law
1432933200 Before You Buy
1432940400 Tech News 2Night

Saturday, May 30

1433008800 The Tech Guy

Sunday, May 31

1433095200 The Tech Guy
1433109600 This Week in Tech

Monday, June 1

1433178000 Tech News Today
1433181600 Triangulation
1433187000 iOS Today
1433194200 Coding 101
1433199600 Tech News 2Night

Tuesday, June 2

1433264400 Tech News Today
1433268000 MacBreak Weekly
1433277000 Security Now
1433286000 Tech News 2Night
1433289600 All About Android

Wednesday, June 3

1433345400 FLOSS Weekly
1433350800 Tech News Today
1433354400 Windows Weekly
1433361600 This Week in Google
1433372400 Tech News 2Night
1433374200 Android App Arena
1433379600 Ham Nation

Thursday, June 4

1433437200 Tech News Today
1433440800 Know How...
1433451600 Home Theater Geeks
1433458800 Tech News 2Night

Friday, June 5

1433523600 Tech News Today
1433527200 This Week in Law
1433538000 Before You Buy
1433545200 Tech News 2Night

Saturday, June 6

1433613600 The Tech Guy

Sunday, June 7

1433700000 The Tech Guy
1433714400 This Week in Tech

Most Recent Episodes

Tech News 2Night

Ron Richards joins us to talk all about Android

TWiT Live Specials

Android M, Chrome, USB-C, Google Now integration, Google Photos

Home Theater Geeks

SMPTE standards for next gen video.

Know How...

How to use the Ping command to shame your ISP.

This Week in Computer Hardware

Google IO, High Bandwidth Memory, and your questions.

Tech News Today

Oculus Rift might set you back $1500.

Ham Nation

Bob Heil visits the ultimate builder.

Android App Arena

GTasks, Wunderlist, Any.do, Layout.

This Week in Google

Google Tracker (I/O edition), Android M, Chromecast 2, and lots more.

iFive for the iPhone

Is the Apple Watch vulnerable to theft?

Coding 101 11

Python: Getting Started

April 3 2014

Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

Guest: Dale Chase

This week we are introducing our newest module, Python with Code Warrior Dale Chase!

How to Install Python

Go to Python.org and click on Python 2.7.6 under "Download". Choose the installer package for your operating system and click on them. The file will be downloaded. It is important to download 2.7 because 3.4.0 is NOT compatible with our lessons. If you want more information on what the differences are between 3.x and 2.x, please check out this handy information.
** Note: Python is AUTOMATICALLY INCLUDED ON Mac OS X ... however, you should probably download the latest rev2 version. **

Viewer submissions and questions will be back next week!

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

Ivory Tower

Compiled vs. Interpreted Languages
* Compiled languages are reduced to a set of machine-specific instructions before being saved as a executable file
* Intepreted Languages are saved in the same format that you entered, then converted into machine language "Just in Time" - when they are needed.
-- Compiled Languages generally run faster, but are a little trickier to develop since they much be compiled for each platform that may use the program
-- Interpreted Languages generally run more slowly than Interpreted languages, but are more convienent for developers.

Whitespace
* In C#, you ended a line of code by typing ";"
* In Python, the WHITESPACE deliniated lines of code

Dynamic Variables
* In C#, we had to explicity declare variables to reserve memory space.

INT (Integer) = 2 Bytes 65536
LONG INT (Integer) = 4 Bytes 4,294,967,296
CHAR (Character) = 1 Byte 256
FLOAT (Floating Point = 4 Bytes 4,294,967,296

* We had to tell C# EXACTLY what type of data would be going into the variable, and it would reserve the necessary space in memory.

** We don't have to do that in Python.
-- Variables in Python are declared AUTOMATICALLY when a value is stored in the variable.

Here's how it works.
"Var1 = 100
Var2 = ""Hello World""
Var3 = ""3.14""" "This becomes an INT
This becomes a STRING
This Becomes a FLOAT"

Python has several Data Types:
"* Numbers
* Strings
* Lists
* Tuple
* Dictionary" "* (int, long, float, complex)
* Contiguous Set of Characters
* Arrays
* Read-Only Lists
* A Hash Table
"

Output to Screen
print "Hello World"
- or -
"Yo = ""Hellow World""
print Yo"

Input from user:
* Python has a built-in function called "raw_input()"
* When you use this function as follows:
"var1 = raw_input(""What's your age?"")
print var1"

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

Sponsors: