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:\/ #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":" 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