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":6109,"date":"2015-02-20T17:13:13","date_gmt":"2015-02-20T23:13:13","guid":{"rendered":"http:\/\/ismalga.withknown.com\/2015\/basic-types-and-how-to-use-it-in-python-mastery"},"modified":"2015-02-20T17:13:13","modified_gmt":"2015-02-20T23:13:13","slug":"basic-types-and-how-to-use-it-in-python-mastery-09","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/basic-types-and-how-to-use-it-in-python-mastery-09\/","title":{"rendered":"Basic Types and How to Use it in Python. Mastery 09."},"content":{"rendered":"
\n

<\/p>\n

<\/p>\n

A type in Python is a category of data which have the same characteristics that distinguishes them as a class or group.<\/span><\/p>\n

The basic types in Python are integers, float and strings. <\/span><\/p>\n

Integers are whole numbers from negative to infinitive. An integer could be -100, 32, 34, 1234, etc. <\/span><\/p>\n

Float numbers are numbers with decimal point, such as 3.1416, -2.39, 3.2, etc.  <\/span><\/span><\/p>\n

String data contains a string of letters enclosed between quotation marks. If numbers are between quotation marks (like ‘17’ or ‘3.4’ ) their type is string. <\/span><\/p>\n

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

Assigning a type to a variable<\/span><\/span><\/p>\n

To assign the string type to a variable, you need to write something like this I your code: <\/span><\/p>\n

M = ‘This is the string of letters I want to assign to the M variable’ <\/span><\/p>\n

Being This is the string of letters I want to assign to the M variable<\/em> the string set of characters you want to assign to the variable. <\/span><\/p>\n

To assign the integer type to a variable, you need to write the name of your variable, followed by an equal sign and the number after it. Like in here: <\/span><\/p>\n

                <\/span>B = 2<\/span><\/p>\n

To assign the float type to a variable, you need to write the name of your variable, followed by an equal sign and the number with decimal point after it. Like in here:<\/span><\/p>\n

                <\/span>C = 3.1416<\/span><\/p>\n

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

Assigning a type to a variable through an input.<\/span><\/span><\/p>\n

To assign the integer type to a variable in Python through an input, you need to write the following line of code: <\/span><\/p>\n

A = int(input(“Write the number you want to assign the integer type”))<\/span><\/p>\n

Being write the number you want to assign the integer type <\/em>an example of message to print in the shell. <\/span><\/p>\n

To assign the float type to a variable in Python through an input, you need to write pretty much the same, but using float instead of int. <\/span><\/p>\n

B = float(input(“Write the number you want to assign the float type”))<\/span><\/p>\n

Being write the number you want to assign the float type <\/em>an example of message to print in the shell. <\/span><\/p>\n

To assign the string type to a variable in Python through an input, you need to write a similar line of code like in the previous examples. <\/span><\/p>\n

                <\/span>C= str(input(“Write the string of data you want to assign to this variable”))<\/span><\/p>\n

This is pretty much how a type works in Python.<\/span><\/p>\n

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

A type in Python is a category of data which have the same characteristics that distinguishes them as a class or group.The basic types in Python are integers, float and strings. Integers are whole numbers from negative to infinitive. An intege… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":104,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[186,164],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6109"}],"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\/104"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=6109"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6109\/revisions"}],"predecessor-version":[{"id":6110,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6109\/revisions\/6110"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=6109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=6109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=6109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}