
Sign up to save your podcasts
Or


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
Please Note: The episode code will NOT work unless you have your own YouTube API Key. The procedure for applying for your own YouTube API key can be found here.
Let's Learn about Sorting!Let's say I have the following list of numbers: (1, 23, 6, 4, 99) Now I want to put that list into ascending order. I need to "sort" the data into an order that will be useful to me.
I could write a function that:
Here's how it would work:
Python has a built-in sorting method!
sort()
Usage:
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]
Hosts: Fr. Robert Ballecer, SJ and Shannon Morse
Guest: Dale Chase
Bandwidth for Coding 101 is provided by CacheFly.
Sponsor:
By TWiT4
44 ratings
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
Please Note: The episode code will NOT work unless you have your own YouTube API Key. The procedure for applying for your own YouTube API key can be found here.
Let's Learn about Sorting!Let's say I have the following list of numbers: (1, 23, 6, 4, 99) Now I want to put that list into ascending order. I need to "sort" the data into an order that will be useful to me.
I could write a function that:
Here's how it would work:
Python has a built-in sorting method!
sort()
Usage:
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]
Hosts: Fr. Robert Ballecer, SJ and Shannon Morse
Guest: Dale Chase
Bandwidth for Coding 101 is provided by CacheFly.
Sponsor:

202 Listeners

78 Listeners

355 Listeners

8 Listeners

3 Listeners

7 Listeners

3 Listeners