Schedule

Schedule

Tuesday, July 29

1406653200 Tech News Today
1406656800 MacBreak Weekly
1406664000 Security Now
1406671200 Before You Buy
1406674800 Tech News 2Night
1406678400 All About Android

Wednesday, July 30

1406734200 FLOSS Weekly
1406739600 Tech News Today
1406743200 Windows Weekly
1406750400 This Week in Google
1406761200 Tech News 2Night
1406763000 redditUP
1406768400 Ham Nation

Thursday, July 31

1406826000 Tech News Today
1406829600 Know How...
1406833200 The Social Hour
1406838600 Coding 101
1406842200 Home Theater Geeks
1406847600 Tech News 2Night
1406849400 The Giz Wiz
1406858400 OMGcraft

Friday, August 1

1406912400 Tech News Today
1406916000 This Week in Law
1406923200 Android App Arena
1406934000 Tech News 2Night

Saturday, August 2

1407002400 The Tech Guy

Sunday, August 3

1407088800 The Tech Guy
1407103200 This Week in Tech

Monday, August 4

1407171600 Tech News Today
1407175200 Triangulation
1407180600 iPad Today
1407193200 Tech News 2Night
1407195000 Marketing Mavericks

Tuesday, August 5

1407258000 Tech News Today
1407261600 MacBreak Weekly
1407268800 Security Now
1407276000 Before You Buy
1407279600 Tech News 2Night
1407283200 All About Android

Wednesday, August 6

1407339000 FLOSS Weekly
1407344400 Tech News Today
1407348000 Windows Weekly
1407355200 This Week in Google
1407366000 Tech News 2Night
1407367800 redditUP
1407373200 Ham Nation

Thursday, August 7

1407430800 Tech News Today
1407434400 Know How...
1407438000 The Social Hour
1407443400 Coding 101
1407447000 Home Theater Geeks
1407452400 Tech News 2Night
1407454200 The Giz Wiz

Most Recent Episodes

Tech News 2Night

OkCupid conducted matchmaking experiments on users

Triangulation

The Michael Jordan of video games.

Tech News Today

Samsung's first Tizen smartphone is reportedly delayed indefinitely.

This Week in Tech

Larry Niven, emoji life, judgmental media, ticket fixing, and more.

The Tech Guy
The Tech Guy 1104 July 27th, 2014

How much do YouTube stars make?

The Tech Guy
The Tech Guy 1103 July 26th, 2014

Mobile Security

Tech News 2Night

The US House of Representatives vote to allow users to unlock their cellphones.

This Week in Law

Indie books without DRM sell twice as many copies than those with DRM.

Android App Arena

Modern games with old-school charm.

This Week in Computer Hardware

64GB of RAM, Shield Tablets, and More!

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: