Well, the WSQ03 was basicaly do a program that will recieve 2 numbers, and sum, rest, multiply, and divide them; very basic, real quick, but since I am very stubborn, I want
ed to create a software that does not allow you to type anything but integers. Obviously, this was not going to be a 5 minute task, so here we go..<\/p>\n
So the two key points where I wanted to base my program were:<\/p>\n
So for the first part, the one with just integers, I first had to figure out how will the computer detect it is a float, and since every input in python is a string, I couldn’t just ask the type as type(x), so I used the “in” function to chek if in any of the variable was a “.” stored in \u00a0“e”:<\/p>\n
Then, the hardest part came in, figure out how the banana i was going to tell the program the input was not a string, little problem, all inputs are strings!, so I asked aid from Bauer, and he pointed me in the right direction with this python webpage:\u00a0https:\/\/docs.python.org\/2\/tutorial\/errors.html<\/p>\n And here is the part:<\/p>\n And the last key point, the ability to reload, was pretty easy. I just used a variable named choice and asigned a lowercased string that if it is yes, the whole problem runs againwith a while:<\/p>\n The rest, was pretty much a piece of pizza:<\/p>\n <\/a><\/p>\n And that’s it!<\/p>\n Well, the WSQ03 was basicaly do a program that will recieve 2 numbers, and sum, rest, multiply, and divide them; very basic, real quick, but since I am very stubborn, I wanted to create a software that does not allow… Continue Reading →<\/a>
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n<\/a>
<\/p>\n","protected":false},"excerpt":{"rendered":"
<\/p>\n","protected":false},"author":191,"featured_media":19784,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[45,93,39],"class_list":["post-19790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-tc1014","tag-wsq03","tag-sin-categoria"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/19790","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\/191"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=19790"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/19790\/revisions"}],"predecessor-version":[{"id":19791,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/19790\/revisions\/19791"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/19784"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=19790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=19790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=19790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}