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":14559,"date":"2015-05-06T22:10:13","date_gmt":"2015-05-07T03:10:13","guid":{"rendered":"https:\/\/gilrg18.withknown.com\/2015\/mastery09-basic-types-and-their-use-in-python"},"modified":"2015-05-06T22:10:13","modified_gmt":"2015-05-07T03:10:13","slug":"mastery09-basic-types-and-their-use-in-python-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery09-basic-types-and-their-use-in-python-2\/","title":{"rendered":"#mastery09 Basic types and their use in Python"},"content":{"rendered":"
\n

Types are a category for things within Python with which Python will work. Types are integers,float,strings,tuples,lists and dictionaries.<\/span><\/p>\n

Integers\u00a0<\/span><\/strong><\/p>\n

Whole numbers from negative infinity to infinity, such as 1, 0, -5, etc.<\/span><\/span><\/p>\n

Integers are numeric values and can be stored, manipulated, and expressed inside variables without quotes.<\/span><\/p>\n

Example:\u00a0<\/span><\/span><\/p>\n

x=5<\/span><\/span><\/p>\n

print (x)<\/span><\/span><\/p>\n

>>>5<\/span><\/span><\/p>\n

Float<\/strong><\/p>\n

Short for “floating point number,” any rational number, usually used with decimals such as 2.8 or 3.14159.<\/p>\n

Strings<\/strong>\u00a0<\/p>\n

A set of letters, numbers, or other characters.<\/p>\n

Strings are a\u00a0<\/span>type<\/em>. They are the basic unit of text in Python and all the other types except integers may contain strings.<\/span><\/p>\n

Example:<\/span><\/p>\n

x=”Hello World”<\/span><\/p>\n

print (x)\u00a0<\/span><\/p>\n

>>>Hello World<\/span><\/span><\/p>\n

Tuples\u00a0<\/strong><\/p>\n

A list with a fixed number of elements. ie x=(1,2,3) parentheses makes it a tuple.<\/p>\n

A tuple is an unchangeable sequence of values.<\/span><\/p>\n

Example:<\/span><\/p>\n

x = (“element 1”, “element 2”, “element 3”)<\/p>\n

Lists<\/strong><\/p>\n

A list is a changeable sequence of data. A list is contained by square brackets i.e. [1,2,3]<\/span><\/p>\n

Example:<\/span><\/p>\n

x=[1,2,3]<\/span><\/p>\n

print (x)<\/span><\/p>\n

>>>[1,2,3]<\/span><\/span><\/p>\n

Dictionaries\u00a0<\/strong><\/p>\n

A type with multiple elements i.e. x = {1: ‘a’,’b’: 2,3: 3} where you address the elements with, e.g., a text.<\/p>\n

Example:<\/p>\n

x={‘Hello’:’hola’, ‘Bye’:’adios’}<\/p>\n

\u00a0<\/p>\n

print(x)<\/p>\n

>>>\u00a0{‘Hello’:’hola’, ‘Bye’:’adios’}<\/p>\n

Source with more info.:\u00a0<\/a>http:\/<\/wbr>\/<\/wbr>en.wikiversity.org\/<\/wbr>wiki\/<\/wbr>Python\/<\/wbr>Basic_data_types#quiz0<\/a><\/span><\/span><\/p>\n

#TC<\/a>1014<\/span><\/span><\/p>\n

#MASTERY<\/a>09<\/span><\/span><\/p>\n

Gilberto Rogel Garc\u00eda<\/span><\/span><\/p>\n

\u00a0<\/p>\n

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

\n

Types are a category for things within Python with which Python will work. Types are integers,float,strings,tuples,lists and dictionaries.<\/span><\/p>\n

Integers <\/span><\/strong><\/p>\n

Whole numbers from negative infinity to infinity, such as 1, 0, -5, etc.<\/span><\/span><\/p>\n

Integers are numeric values and can be stored, manipulated, and expressed inside variables without quotes.<\/span><\/p>\n

Example: <\/span><\/span><\/p>\n

x=5<\/span><\/span><\/p>\n

print (x)<\/span><\/span><\/p>\n

>>>5<\/span><\/span><\/p>\n

Float<\/strong><\/p>\n

Short for “floating point number,” any rational number, usually used with decimals such as 2.8 or 3.14159.<\/p>\n

Strings<\/strong> <\/p>\n

A set of letters, numbers, or other characters.<\/p>\n

Strings are a <\/span>type<\/em>. They are the basic unit of text in Python and all the other types except integers may contain strings.<\/span><\/p>\n

Example:<\/span><\/p>\n

x=”Hello World”<\/span><\/p>\n

print (x) <\/span><\/p>\n

>>>Hello World<\/span><\/span><\/p>\n

Tuples <\/strong><\/p>\n

A list with a fixed number of elements. ie x=(1,2,3) parentheses makes it a tuple.<\/p>\n

A tuple is an unchangeable sequence of values.<\/span><\/p>\n

Example:<\/span><\/p>\n

x = (“element 1”, “element 2”, “element 3”)<\/p>\n

Lists<\/strong><\/p>\n

A list is a changeable sequence of data. A list is contained by square brackets i.e. [1,2,3]<\/span><\/p>\n

Example:<\/span><\/p>\n

x=[1,2,3]<\/span><\/p>\n

print (x)<\/span><\/p>\n

>>>[1,2,3]<\/span><\/span><\/p>\n

Dictionaries <\/strong><\/p>\n

A type with multiple elements i.e. x = {1: ‘a’,’b’: 2,3: 3} where you address the elements with, e.g., a text.<\/p>\n

Example:<\/p>\n

x={‘Hello’:’hola’, ‘Bye’:’adios’}<\/p>\n

 <\/p>\n

print(x)<\/p>\n

>>> {‘Hello’:’hola’, ‘Bye’:’adios’}<\/p>\n

Source with more info.: <\/a>http:\/\/en.wikiversity.org\/wiki\/Python\/Basic_data_types#quiz0<\/a><\/span><\/span><\/p>\n

#TC<\/a>1014<\/span><\/span><\/p>\n

#MASTERY<\/a>09<\/span><\/span><\/p>\n

Gilberto Rogel García<\/span><\/span><\/p>\n

 <\/p>\n

 <\/p>\n<\/div>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[332,164,559,486,45,287],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/14559"}],"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\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=14559"}],"version-history":[{"count":5,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/14559\/revisions"}],"predecessor-version":[{"id":17490,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/14559\/revisions\/17490"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=14559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=14559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=14559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}