Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/feed-rss2.php on line 8
Joel Erles’s Articles at Courses by Ken https://kenscourses.com/tc101winter2015 Facilitator of Learning Experiences Thu, 07 May 2015 04:58:21 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Mastery20 https://kenscourses.com/tc101winter2015/2015/mastery20-15/ Thu, 07 May 2015 04:58:21 +0000 https://jerles.withknown.com/2015/mastery20

Use of loops with “for”

This loop allows you to repeat a code n number of times. 

Example:

Where the a in "for a in range(x)" is a random character, you can put a string if you want.

20 1014

Continue reading ]]>

Use of loops with “for”

This loop allows you to repeat a code n number of times. 

Example:

Where the a in “for a in range(x)” is a random character, you can put a string if you want.

20 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery18 https://kenscourses.com/tc101winter2015/2015/mastery18-14/ Thu, 07 May 2015 04:46:19 +0000 https://jerles.withknown.com/2015/mastery18

Nesting of conditional statements

If you want to check a condition after a previous condition that was true, then you might want to use nested statements.

Example:

NESTED IF CONSTRUCT

In a nested if construct, you can have an if...elif...else construct inside another if...elif...else construct. The syntax of the nested if...elif...else construct may be:

18 1014

Continue reading ]]>

Nesting of conditional statements

If you want to check a condition after a previous condition that was true, then you might want to use nested statements.

Example:

NESTED IF CONSTRUCT

In a nested if construct, you can have an if…elif…else construct inside another if…elif…else construct. The syntax of the nested if…elif…else construct may be:

18 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery19 https://kenscourses.com/tc101winter2015/2015/mastery19-14/ Thu, 07 May 2015 04:36:15 +0000 https://jerles.withknown.com/2015/mastery19

Use of loops with “while”

19 1014

Continue reading ]]>

Use of loops with “while”

19 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery17 https://kenscourses.com/tc101winter2015/2015/mastery17-18/ Thu, 07 May 2015 04:35:10 +0000 https://jerles.withknown.com/2015/mastery17

Use of “elif” with a conditional

17 1014

Continue reading ]]>

Use of “elif” with a conditional

17 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery16 https://kenscourses.com/tc101winter2015/2015/mastery16-21/ Thu, 07 May 2015 04:33:58 +0000 https://jerles.withknown.com/2015/mastery16

Use of “else” with a conditional

16 1014

Continue reading ]]>

Use of “else” with a conditional

16 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery15 https://kenscourses.com/tc101winter2015/2015/mastery15-21/ Thu, 07 May 2015 04:32:53 +0000 https://jerles.withknown.com/2015/mastery15

Use of the conditional “if”

15 1014

Continue reading ]]>

Use of the conditional “if”

15 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery11 and 12 https://kenscourses.com/tc101winter2015/2015/mastery11-and-12/ Thu, 07 May 2015 04:31:21 +0000 https://jerles.withknown.com/2015/mastery11-and-12 Continue reading ]]>

Calling and Creating Python functions

11 12 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery02 https://kenscourses.com/tc101winter2015/2015/mastery02-22/ Thu, 07 May 2015 04:29:31 +0000 https://jerles.withknown.com/2015/mastery02 Continue reading ]]>

Ability to create Python project in IDE and run inside the IDE

02 1014

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery01 https://kenscourses.com/tc101winter2015/2015/mastery01-25/ Thu, 07 May 2015 04:27:46 +0000 https://jerles.withknown.com/2015/mastery01

Ability to create Python file and run from command line

01 1014

 

Continue reading ]]>

Ability to create Python file and run from command line

01 1014

 

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery14 https://kenscourses.com/tc101winter2015/2015/mastery14-9/ Thu, 07 May 2015 04:19:25 +0000 https://jerles.withknown.com/2015/mastery14 Continue reading ]]>

Creating and using a Python module

A module is a file containing Python definitions and statements. The file name is the module name with the suffix “.py”

Example:

  • Create “hello.py” then write the following function:
def helloworld():
   print "hello"

import hello
hello.helloworld()
>>>'hello'

AWESOME PAGE

14 1014

]]>
https://creativecommons.org/licenses/by/4.0/