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/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":25469,"date":"2015-10-30T12:57:05","date_gmt":"2015-10-30T18:57:05","guid":{"rendered":"http:\/\/ilkapython.wordpress.com\/?p=88"},"modified":"2015-10-30T12:57:05","modified_gmt":"2015-10-30T18:57:05","slug":"mastery-9-basic-types-of-python","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery-9-basic-types-of-python\/","title":{"rendered":"Mastery 9 \u2013 Basic Types of Python"},"content":{"rendered":"

This information is taken from our textbook Think Python so i recommend to read it and if you want to reforce and improve do the exercises provided by the textbook so you can understand better.<\/p>\n

So, to start we need to learn that Python works with values but there are differents types of value like:<\/p>\n

Strings: because it contains a “strings” of letters. It basically it takes everything literal it doesnt matter if you write a number if it has ” .. ” the program wil consider it as a string.<\/p>\n

Integrers: are basically numerical values, like 2,4,5,3,6, etc. but whole and can go from negative to positive it doesnt matter.<\/p>\n

Float:\u00a0they represent real numbers and are written with a decimal point dividing the integer and fractional parts. Like; 3.2, 5.4, 7.87, etc.<\/p>\n

Tuples:\u00a0A tuple is a sequence of values. The values can be any type, and they are indexed by integers, so in that respect tuples are a lot like lists. The important difference is that tuples
\nare immutable.<\/p>\n

Syntactically, a tuple is a comma-separated list of values:
\n>>> t = ‘a’, ‘b’, ‘c’, ‘d’, ‘e’
\nAlthough it is not necessary, it is common to enclose tuples in parentheses:
\n>>> t = (‘a’, ‘b’, ‘c’, ‘d’, ‘e’)
\nTo create a tuple with a single element, you have to include a final comma:
\n>>> t1 = ‘a’,
\n>>> type(t1)
\n<type ‘tuple’>
\nA value in parentheses is not a tuple because it will get confused with a string (thats why is marked like type str):
\n>>> t2 = (‘a’)
\n>>> type(t2)
\n<type ‘str’><\/p>\n

List: A\u00a0list is a sequence of values. In a list, the values\u00a0can be any type. The values in a list are called elements or sometimes items.\u00a0There are several ways to create a new list; the simplest is to enclose the elements in square\u00a0brackets ([ and ]).<\/p>\n

Dictionaries:\u00a0A dictionary is like a list, but more general. In a list, the indices have to be integers; in a\u00a0dictionary they can be (almost) any type.<\/p>\n

Boolean:\u00a0A boolean expression is an expression that is either true or false.\u00a0True and False are special values that belong to the type bool; they are not strings.<\/p>\n

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

This information is taken from our textbook Think Python so i recommend to read it and if you want to reforce and improve do the exercises provided by the textbook so you can understand better. So, to start we need to learn that Python works with values but there are differents types of value like: […]\"\"<\/p>\n","protected":false},"author":201,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[372,39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25469"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/201"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=25469"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25469\/revisions"}],"predecessor-version":[{"id":25470,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25469\/revisions\/25470"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=25469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=25469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=25469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}