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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831
{"id":10369,"date":"2015-04-09T11:58:02","date_gmt":"2015-04-09T16:58:02","guid":{"rendered":"https:\/\/jorgepadilla95.withknown.com\/2015\/creation-and-use-of-lists-in-python"},"modified":"2015-04-09T11:58:02","modified_gmt":"2015-04-09T16:58:02","slug":"creation-and-use-of-lists-in-python-4","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/creation-and-use-of-lists-in-python-4\/","title":{"rendered":"Creation and use of lists in Python"},"content":{"rendered":"
\n

I used the Python IDLE where I create and use a very simple list. Check it out.<\/p>\n

To create a list you just have to type a name and in [] the things you want in the list, like this list=[1,6,5,4,]<\/strong>each of the components of the list has to be separated with a comma or they will be recognized as one component, the lists components have numbers, the first one is the number 0, ne next one 1 and like that untill the end, the last component also could be -1, the one before -2 and like that until the first one. to use list this commands has to be known.<\/p>\n

\n
list.<\/tt>append<\/tt>(<\/big>x<\/em>)<\/big><\/dt>\n
\n

Add an item to the end of the list. Equivalent to a[len(a):]<\/span> =<\/span> [x]<\/span><\/tt>.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>extend<\/tt>(<\/big>L<\/em>)<\/big><\/dt>\n
\n

Extend the list by appending all the items in the given list. Equivalent to a[len(a):]<\/span> =<\/span> L<\/span><\/tt>.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>insert<\/tt>(<\/big>i<\/em>, x<\/em>)<\/big><\/dt>\n
\n

Insert an item at a given position. The first argument is the index of the element before which to insert, so a.insert(0,<\/span> x)<\/span><\/tt> inserts at the front of the list, and a.insert(len(a),<\/span> x)<\/span><\/tt> is equivalent to a.append(x)<\/span><\/tt>.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>remove<\/tt>(<\/big>x<\/em>)<\/big><\/dt>\n
\n

Remove the first item from the list whose value is x<\/em>. It is an error if there is no such item.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>pop<\/tt>(<\/big>[<\/span>i<\/em>]<\/span>)<\/big><\/dt>\n
\n

Remove the item at the given position in the list, and return it. If no index is specified, a.pop()<\/span><\/tt> removes and returns the last item in the list. (The square brackets around the i<\/em> in the method signature denote that the parameter is optional, not that you should type square brackets at that position. You will see this notation frequently in the Python Library Reference.)<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>clear<\/tt>(<\/big>)<\/big><\/dt>\n
\n

Remove all items from the list. Equivalent to del<\/span> a[:]<\/span><\/tt>.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>index<\/tt>(<\/big>x<\/em>)<\/big><\/dt>\n
\n

Return the index in the list of the first item whose value is x<\/em>. It is an error if there is no such item.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>count<\/tt>(<\/big>x<\/em>)<\/big><\/dt>\n
\n

Return the number of times x<\/em> appears in the list.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>sort<\/tt>(<\/big>)<\/big><\/dt>\n
\n

Sort the items of the list in place.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>reverse<\/tt>(<\/big>)<\/big><\/dt>\n
\n

Reverse the elements of the list in place.<\/p>\n<\/dd>\n<\/dl>\n

\n
list.<\/tt>copy<\/tt>(<\/big>)<\/big><\/dt>\n
\n

Return a shallow copy of the list. Equivalent to a[:]<\/span><\/tt>.<\/p>\n

Source: docs.python.org<\/p>\n<\/dd>\n<\/dl>\n

<\/a>#Mastery23<\/a><\/p>\n

\"\"<\/p>\n

 <\/p>\n

 <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

I used the Python IDLE where I create and use a very simple list. Check it out.To create a list you just have to type a name and in [] the things you want in the list, like this list=[1,6,5,4,]each of the components of the list has to be … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[166,144,182,367,245],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/10369"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=10369"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/10369\/revisions"}],"predecessor-version":[{"id":10370,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/10369\/revisions\/10370"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=10369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=10369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=10369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}