{"id":36987,"date":"2016-08-22T12:40:21","date_gmt":"2016-08-22T17:40:21","guid":{"rendered":"http:\/\/kenscourses.com\/tc101fall2016\/?guid=502923f54fdbafc31d38f261b4462b36"},"modified":"2016-08-22T12:40:21","modified_gmt":"2016-08-22T17:40:21","slug":"i-aint-got-no-type","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/i-aint-got-no-type\/","title":{"rendered":"I AIN&#8217;T GOT NO TYPE"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"http:\/\/emnl.me\/i-aint-got-no-type\/\"><a href=\"http:\/\/emnl.me\/\">Coding The Future<\/a><\/a><\/em><br \/><\/p>\n<p><iframe src=\"http:\/\/giphy.com\/embed\/jUZmz3kAiAuLC\" width=\"480\" height=\"338\" frameborder=\"0\" class=\"giphy-embed\" allowfullscreen><\/iframe><\/p><p><a href=\"http:\/\/giphy.com\/gifs\/jUZmz3kAiAuLC\">Image via GIPHY<\/a><\/p><p><\/p>\n\n<p>Personally, I am not a rap fan, but again, I am making a reference to a song. This time, <a href=\"https:\/\/play.spotify.com\/album\/3j8deqGgePk1VgKJflEMJp?play=true&amp;utm_source=open.spotify.com&amp;utm_medium=open\">No Type<\/a> by Rae Sremmurd came to mind when thinking about the different types of data you can work with on Python. <\/p>\n\n<p>Even though we've already been working with them, let's discuss these data types in more detail...<\/p>\n\n<ul>\n<li><strong>Integers:<\/strong> They store a whole numeric value with no decimals, e.g.: 5.<\/li>\n<li><strong>Floats:<\/strong> They store a numeric value with decimals, e.g.: 23.43.<\/li>\n<li><strong>String:<\/strong> They store a string of characters of any type, e.g.: \"Hello\". Note that in Python there is no char (character) type. If you wanted to store only one character, use a string of length one. Also, just like it's name suggests, it is a string of characters tied together, so you can access each character using it's position. For example, in \"Hello\", string[1] is 'e'.<\/li>\n<li><strong>Booleans:<\/strong> They store a binary value of true or false. Basically, a variable of this type can only have a value of true or false. The false value can be expressed as 0, and true as any other number. E.g.: userIsMale = false.<\/li>\n<\/ul>\n\n<p>Also, there are types in which several items can be stored within one variable. In other programming languages, they are usually called arrays, but in python they are somewhat different.<\/p>\n\n<ul>\n<li><strong>Lists:<\/strong> A list that stores several variables, and can be expansible. They are not limited to just storing one type of data; or in other words, you can store ints, strings, floats, in just one list. E.g.: <code>list = [1, 2, hey, music, 12.34]<\/code><\/li>\n<li><strong>Tuples:<\/strong> Similar to a list, but static. Once it is declared, it remains fixed. E.g.: <code>tuple = {1, 3, hello}<\/code><\/li>\n<\/ul>\n\n<p>That's <!--more--> for today. If you would like further reading, I would recommend heading to <a href=\"https:\/\/en.wikiversity.org\/wiki\/Python\/Basic_data_types\">Wikiversity<\/a>.<\/p>\n\n<p>That's all for now. Until next time! <br>\n<a href=\"http:\/\/twitter.com\/emamex98\">@emamex98<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Coding The Future Image via GIPHY Personally, I am not a rap fan, but again, I am making a reference to a song. This time, No Type by Rae Sremmurd came to mind when thinking about the different types of data you can work with on Python. Even though we&#8217;ve already been &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/i-aint-got-no-type\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">I AIN&#8217;T GOT NO TYPE<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[50,101,95,100,98,96,24,99,97,47],"class_list":["post-36987","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","tag-arrays","tag-boolean","tag-data-types","tag-float","tag-int","tag-lists","tag-python","tag-string","tag-tuples","tag-variables"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/36987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=36987"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/36987\/revisions"}],"predecessor-version":[{"id":36989,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/36987\/revisions\/36989"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=36987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=36987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=36987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}