Hi in Python 3 we have 6 Basic Types for categorize things, let me show you:<\/span><\/p>\n In Python 3 we have:<\/span><\/p>\n INTEGERS <\/p>\n Unlike other programming languages python use Integers not matter how high or small it is as long as it is integer the type of the number will be INTEGER With INTEGERS we can do many things, the basic could be math like:<\/span><\/p>\n >>>3+9 >>> 5-6 But also INTEGERS can be used in the rest of the program, they are a essential part of Python, you\u00a0 have to be very attentive in do not confuse with string because 43 != ’43’.<\/span><\/p>\n Example of assign a INTEGER to a variable and assign a INTEGER of an input.<\/span><\/p>\n >>>num_Int = 3<\/span><\/p>\n #The first number is a variable that has the value of 3<\/span><\/p>\n >>>input_Int= int(input(‘Give me a number’))<\/span><\/p>\n #The second ask for the user to put a number and covert it to INTEGER<\/span><\/p>\n<\/blockquote>\n <\/p>\n FLOAT <\/p>\n As equal as INTEGER, FLOAT numbers can be used in mathematical operations.<\/span><\/p>\n >>>1.2+5.1<\/span> Also the float numbers can be also be assign to a variable or an input. <\/span><\/p>\n >>>num_Float = 3<\/span><\/p>\n #The first number is a variable that has the value of 3<\/span><\/p>\n >>>input_Float= int(input(‘Give me a number’))<\/span><\/p>\n #The second ask for the user to put a number and covert it to FLOAT <\/p>\n STRINGS <\/p>\n So you can use a string like a object and make a lot of things with it.<\/span><\/p>\n >example_string = ‘Hi everyone!’<\/span> Python String Official Reference<\/a><\/p>\n <\/p>\n TUPLES To make a tuple the process is the following (very simple):<\/span><\/p>\n >>>example_Tuple = 1,2,3<\/span> To create a tuple just type the elements without any bracket or keys!<\/span><\/p>\n But why use tuples if they can’t be edited?<\/span> Python Tuples Official Reference<\/a><\/p>\n <\/p>\n LISTS<\/strong> To make a list is very simple:<\/span><\/p>\n >>example_List = [1, 2, 3]<\/span> #in Lists you can remove [use list.remove(x) or list.pop(x)]<\/span> #In Lists you can move elements inside and outside [use list.insert(x,y)]<\/span> Lists are very useful when you know how to use it, because it can help you with stacks and also when you are open a file in Python<\/span><\/p>\n Python3 Lists Official Reference<\/a><\/span><\/p>\n DICTIONARIES<\/strong> To make a dictionary follow the following example:<\/p>\n >>family_Age = {‘Me’:18, ‘Sister’:24, ‘Mom’:50, ‘Dad’:55} #If you call a specific element it return the value #You can add elements very simple #Also delete Dictionaries are very useful for several things,\u00a0 if you want to know more about click the following link.<\/p>\n Python Dictionaries Official Reference<\/a><\/p>\n <\/a> <\/p>\n","protected":false},"excerpt":{"rendered":" Hi in Python 3 we have 6 Basic Types for categorize things, let me show you: In Python 3 we have: INTEGERS We can say an ‘integer’ is an integer, some examples of this could be: 1, 23, 3909, -23, 4, -189 Unlike other programming languages python use Integers not matter how high or small…
\n<\/strong>We can say an ‘integer’ is an integer, some examples of this could be:
\n1, 23, 3909, -23, 4, -189
\n<\/span><\/p>\n
\n<\/span><\/p>\n\n
\n12<\/span><\/p>\n<\/blockquote>\n\n
\n-1<\/span><\/p>\n<\/blockquote>\n\n
\n
\n<\/strong>Float numbers are similar to integer just because they’re numbers too, but FLOAT allow you to use decimal numbers and this open a new world, because just imagine try to work with numbers like \u03c0<\/span> or ‘e’ and use INTEGERS… it won’t work right?<\/span><\/p>\n\n
\n6.3<\/span><\/p>\n<\/blockquote>\n\n
\n<\/span><\/p>\n<\/blockquote>\n
\n
\n<\/strong>Strings are a very special type in Python because if you are familiar with other programming languages maybe you know that strings are not objects, but here in Python THEY ARE!
\n<\/span><\/p>\n\n
\n>>>example_string<\/span>
\nHi everyone!<\/span>
\n>>>len(example_string)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Length of the string<\/span>
\n5<\/span>
\n>>>type(example_string)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Type of the class<\/span>
\n<class ‘str’><\/span><\/p>\n<\/blockquote>\n
\n
\n<\/strong>Tuples are a special type of ordered list in Python 3, because with Tuples you can make a list but you can’t modify it,\u00a0 it remains always the same.
\n<\/span><\/p>\n\n
\n>>>type(example_Tuple)
\n<\/span><class ‘tuple’><\/span><\/p>\n<\/blockquote>\n
\nWell sometimes even if you don’t believe me Tuples are necessary just imagine for example that you are in charge of many schools of a region and you really don’t want to miss information, does a tuple can be useful?…
\n<\/span>
\nOf course because this way you secure the fact that any school name will be missed.<\/span><\/p>\n
\n
\nList are amazing, as its name says it is a ordered list of things like Tuples but LIST CAN BE EDITED.<\/span><\/p>\n\n
\n>>>type(example_List)<\/span>
\n<class ‘list’><\/span>
\n#in Lists you can add [use list.append(x)]
\n>>>example_List.append(4)
\n>>>example_List
\n[1, 2, 3, 4]<\/span><\/p>\n
\n>>>example_List.remove(3)<\/span>
\n>>>example_List<\/span>
\n[1, 2, 4]<\/span><\/p>\n
\n>>>example_List.insert(2,3) #In second space insert number 3<\/span>
\n>>>example_List<\/span>
\n[1, 2, 3, 4]<\/span><\/p>\n<\/blockquote>\n
\nDictionaries are a link between anything and anything, they are very useful because it keep order the information, and provides different uses.
\n<\/span><\/p>\n\n
\n>>>type(family_Age)
\n<class ‘dict’><\/p>\n
\n>>>family_Age[‘Mom’]50<\/p>\n
\n>>>family_Age[‘Uncle’]=47
\n>>>family_Age
\n{‘Me’:18, ‘Sister’:24, ‘Mom’:50, ‘Dad’:55, ‘Uncle’:47}<\/p>\n
\n>>>del family_Age[‘Me’]
\n>>>family_Age
\n{‘Sister’:24, ‘Mom’:50, ‘Dad’:55, ‘Uncle’:47}<\/p>\n<\/blockquote>\n
Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":196,"featured_media":26983,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[372,46],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26987"}],"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\/196"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=26987"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26987\/revisions"}],"predecessor-version":[{"id":26988,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/26987\/revisions\/26988"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/26983"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=26987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=26987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=26987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}