Here im going to prove that i know the basic types of Python.<\/p>\n
An integer number It\u00b4s a decimal number Is a word, you need to tell pyhton that you are writing a string and not a variable with “ An uneditable list, to make one you need to use parenthesis A list that can me edited, to make one you need to use brackets You link elements with other type, you create one with {} and link each element with :, it is comonly used to map strings to integers. You can modify the type of a variable with preset functions, sometimes it doesnt work Here im going to prove that i know the basic types of Python.<\/p>\n An integer number It´s a decimal number Is a word, you need to tell pyhton that you are writing a string and not a variable with “ An uneditable list, to make one you need to use parenthesis A list that can me edited, to make one you need to use brackets You link elements with other type, you create one with {} and link each element with :, it is comonly used to map strings to integers. You can modify the type of a variable with preset functions, sometimes it doesnt work
x = 7<\/span><\/span>
x + 3 = 10<\/span><\/span>
It canbe used for calculations<\/p>\n– Floats<\/h4>\n
x = .7 <\/span><\/span>
1.4456<\/span><\/span>
0.1234<\/span><\/span><\/p>\n– Strings<\/h4>\n
x = “Hello World”<\/span><\/span>
It can be added to integers and other strings
print (x,”I\u00b4m jose carlos and im”,18,”years old”)<\/span><\/span>
Hello World I\u00b4m jose calros and im 18 years old <\/p>\n-Tuples<\/h4>\n
x = (1,2,3) <\/span><\/span><\/p>\n-Lists<\/h4>\n
x = [6,1,9,”hola”,”hello”] <\/span><\/span><\/p>\n-Dictionaries <\/h4>\n
x = {“hola”:1,”jose”:2, 15:15,”new word”:0}<\/p>\n
x = 12<\/span><\/span>
str(x)<\/span><\/span>
“12”
x = “hola”<\/span><\/span>
int(x)<\/span><\/span>
Error<\/p>\n","protected":false},"excerpt":{"rendered":"– Integers<\/h4>\n
x = 7<\/span><\/span>
x + 3 = 10<\/span><\/span>
It canbe used for calculations<\/p>\n– Floats<\/h4>\n
x = .7 <\/span><\/span>
1.4456<\/span><\/span>
0.1234<\/span><\/span><\/p>\n– Strings<\/h4>\n
x = “Hello World”<\/span><\/span>
It can be added to integers and other strings
print (x,”I´m jose carlos and im”,18,”years old”)<\/span><\/span>
Hello World I´m jose calros and im 18 years old <\/p>\n-Tuples<\/h4>\n
x = (1,2,3) <\/span><\/span><\/p>\n-Lists<\/h4>\n
x = [6,1,9,”hola”,”hello”] <\/span><\/span><\/p>\n-Dictionaries <\/h4>\n
x = {“hola”:1,”jose”:2, 15:15,”new word”:0}<\/p>\n
x = 12<\/span><\/span>
str(x)<\/span><\/span>
“12”
x = “hola”<\/span><\/span>
int(x)<\/span><\/span>
Error<\/p>\n","protected":false},"author":198,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[164,632],"class_list":["post-24354","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","tag-mastery09","tag-types"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24354","targetHints":{"allow":["GET"]}}],"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\/198"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=24354"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24354\/revisions"}],"predecessor-version":[{"id":26893,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24354\/revisions\/26893"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=24354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=24354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=24354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}