Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
Frida Diaz’s Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Wed, 25 Nov 2015 04:56:52 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Cars https://kenscourses.com/tc101fall2015/2015/cars-3/ Wed, 25 Nov 2015 04:56:00 +0000 http://kenscourses.com/tc101fall2015/?guid=b3409150a0a569c12b3e81f22ade08e3

]]>
https://creativecommons.org/licenses/by/4.0/
Images https://kenscourses.com/tc101fall2015/2015/images/ Wed, 25 Nov 2015 04:51:00 +0000 http://kenscourses.com/tc101fall2015/?guid=d38b20c6e6d6d4e6151d4b1d4ea9e809

Due to time shortage I decided to omit this WSQ
]]>
https://creativecommons.org/licenses/by/4.0/
Estimating e https://kenscourses.com/tc101fall2015/2015/estimating-e-4/ Wed, 25 Nov 2015 04:50:00 +0000 http://kenscourses.com/tc101fall2015/?guid=b4936854e65275a53f5c467260c11b53

]]>
https://creativecommons.org/licenses/by/4.0/
Babylonian Method https://kenscourses.com/tc101fall2015/2015/babylonian-method-5/ Wed, 25 Nov 2015 04:45:00 +0000 http://kenscourses.com/tc101fall2015/?guid=59b1d4e8ab6873808cb05460a88d2382

]]>
https://creativecommons.org/licenses/by/4.0/
Dictionaries https://kenscourses.com/tc101fall2015/2015/dictionaries/ Wed, 25 Nov 2015 02:49:00 +0000 http://kenscourses.com/tc101fall2015/?guid=1ce1e27fc2c6e86668cc4d5ca0e0ea7c
       Dictionaries are similar to list. They can store many values that can be used when called. The difference between a dictionary and a list is that every value stored in a dictionary as mapped to another value.

       For creating a dictionary we use the function dict( ). For stating that something is dictionary we type the name we want to assign to it followed by the equal sign. After the equal signs, you start typing the values between curly brackets. For writing a value it is necessary to type the value, a colon, and the value it is being mapped to. For separating each set of values we use commas.

       As you can see, when you try to print a dictionary, the values inside of it are printed without an specific order. For example, if you print them again, the order will be completely different:

       We can determine the number of sets of values inside a dictionary with the command len( ).



     Also, you can get the value is being mapped to another value. Also, you can change the value it is being mapped to:

]]>
https://creativecommons.org/licenses/by/4.0/
Tuples https://kenscourses.com/tc101fall2015/2015/tuples/ Mon, 23 Nov 2015 07:32:00 +0000 http://kenscourses.com/tc101fall2015/?guid=b38968374dd30200eed6f2910fd12365
      A tuple is a sequence of values that are nested into one function. These elements can be strings, number, and even tuples. You can have many types of elements within the same tuple, for example:


Colors = (‘red’, ‘blue’, ’yellow’ )

Numbers = ( 1, 2, 3 )

List = ( 4, (5, 6))

Other = ( ‘red’, 2, (5, 6) )


      As you can see, tuples are pretty much like a list; what differentiates them is that tuples cannot be mutable. For creating a tuple you need to establish the name of the tuple followed by an equal sign (which means ‘assignment’). After the equal sign you start naming the elements included in the list. These elements are nested inside parenthesis () and separated by commas. If the element being established is a string, it needs to be between quotation marks.


     For printing the whole tuple you type the command print() and between the parenthesis you type the name of the tuple. For printing just one element of the tuple you type the command print() and between the parenthesis you type the name of the tuple followed by the number of the element between square brackets.


NOTE: The elements on a tuple are numbered starting from 0


     For knowing how many elements a tuple contains, you can use the command len(), between the parenthesis you type the name of the tuple.



     Also, you can add one tuple to another and create a new tuple. For that, you need to type the name of the tuple you are creating followed by an equal sign, followed by the name of the first tuple and the addition sign followed by the second tuple you will adding.




]]>

      A tuple is a sequence of values that are nested into one function. These elements can be strings, number, and even tuples. You can have many types of elements within the same tuple, for example:

Colors = (‘red’, ‘blue’, ’yellow’ )
Numbers = ( 1, 2, 3 )
List = ( 4, (5, 6))
Other = ( ‘red’, 2, (5, 6) )

      As you can see, tuples are pretty much like a list; what differentiates them is that tuples cannot be mutable. For creating a tuple you need to establish the name of the tuple followed by an equal sign (which means ‘assignment’). After the equal sign you start naming the elements included in the list. These elements are nested inside parenthesis () and separated by commas. If the element being established is a string, it needs to be between quotation marks.

     For printing the whole tuple you type the command print() and between the parenthesis you type the name of the tuple. For printing just one element of the tuple you type the command print() and between the parenthesis you type the name of the tuple followed by the number of the element between square brackets.

NOTE: The elements on a tuple are numbered starting from 0

     For knowing how many elements a tuple contains, you can use the command len(), between the parenthesis you type the name of the tuple.


     Also, you can add one tuple to another and create a new tuple. For that, you need to type the name of the tuple you are creating followed by an equal sign, followed by the name of the first tuple and the addition sign followed by the second tuple you will adding.

]]>
https://creativecommons.org/licenses/by/4.0/
Lists https://kenscourses.com/tc101fall2015/2015/lists-9/ Mon, 23 Nov 2015 07:06:00 +0000 http://kenscourses.com/tc101fall2015/?guid=5a80c6e54fa32b16d2ff118cc6204ecf
       A list is a sequence of values that are nested into one function. These elements can be strings, number, and even lists. You can have many types of elements within the same list, for example:


Colors = [ ‘red’, ‘blue’, ’yellow’ ]

Numbers = [ 1, 2, 3 ]

List = [ 4, [5, 6]]

Other = [ ‘red’, 2, [5, 6] ]


      As you can see, for creating a list you need to establish the name on the list followed by an equal sign (which means ‘assignment’). After the equal sign you start naming the elements included in the list. These elements are nested inside square brackets [] and separated by commas. If the element being established is a string, it needs to be between quotation marks.


      For printing the whole list you type the command print() and between the parenthesis you type the name of the list. For printing just one element of the list you type the command print() and between the parenthesis you type the name of the list followed by the number of the element between square brackets.



NOTE: The elements on a list are numbered starting from 0




      For knowing how many elements a list contains, you can use the command len(), between the parenthesis you type the name of the list.





     Also, you can change an element on a list by typing the name of the list followed by position of the element you want to change between square brackets. After that, you place the equal sign followed by the element you want to replace it with.




]]>

       A list is a sequence of values that are nested into one function. These elements can be strings, number, and even lists. You can have many types of elements within the same list, for example:

Colors = [ ‘red’, ‘blue’, ’yellow’ ]
Numbers = [ 1, 2, 3 ]
List = [ 4, [5, 6]]
Other = [ ‘red’, 2, [5, 6] ]

      As you can see, for creating a list you need to establish the name on the list followed by an equal sign (which means ‘assignment’). After the equal sign you start naming the elements included in the list. These elements are nested inside square brackets [] and separated by commas. If the element being established is a string, it needs to be between quotation marks.

      For printing the whole list you type the command print() and between the parenthesis you type the name of the list. For printing just one element of the list you type the command print() and between the parenthesis you type the name of the list followed by the number of the element between square brackets.


NOTE: The elements on a list are numbered starting from 0


      For knowing how many elements a list contains, you can use the command len(), between the parenthesis you type the name of the list.

     Also, you can change an element on a list by typing the name of the list followed by position of the element you want to change between square brackets. After that, you place the equal sign followed by the element you want to replace it with.

]]>
https://creativecommons.org/licenses/by/4.0/
The Zen of Python https://kenscourses.com/tc101fall2015/2015/the-zen-of-python-3/ Mon, 23 Nov 2015 03:24:00 +0000 http://kenscourses.com/tc101fall2015/?guid=c5b927d9e0cd0242828e8602d57696fa
       The Zen of Python is a document wrote by Tim Peters in August of 2004. This document stablishes 19 software principles that influenced the design of the Python Programming Language.


      This principles are shown whenever you type the command “import this” on a Python interpreter.


]]>

       The Zen of Python is a document wrote by Tim Peters in August of 2004. This document stablishes 19 software principles that influenced the design of the Python Programming Language.


      This principles are shown whenever you type the command “import this” on a Python interpreter.


]]>
https://creativecommons.org/licenses/by/4.0/
Bonus Quiz https://kenscourses.com/tc101fall2015/2015/bonus-quiz-9/ Fri, 13 Nov 2015 15:36:00 +0000 http://kenscourses.com/tc101fall2015/?guid=fee6c5672d653570a84632caaf7f1002

]]>
https://creativecommons.org/licenses/by/4.0/
Greatest Common Divisor https://kenscourses.com/tc101fall2015/2015/greatest-common-divisor/ Fri, 30 Oct 2015 15:37:00 +0000 http://kenscourses.com/tc101fall2015/?guid=9345a437f0c63f047d9a8f6c4e1d7303

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