Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":1720,"date":"2015-01-23T23:23:40","date_gmt":"2015-01-24T05:23:40","guid":{"rendered":"http:\/\/tc1014.withknown.com\/2015\/wsq03-fun-with-numbers"},"modified":"2015-01-23T23:23:40","modified_gmt":"2015-01-24T05:23:40","slug":"wsq03-fun-with-numbers-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/wsq03-fun-with-numbers-2\/","title":{"rendered":"WSQ03-Fun with numbers"},"content":{"rendered":"
\n

\n 1 min read <\/span>\n <\/p>\n

#WSQ03<\/a> #TC1014<\/a><\/span><\/p>\n

this time the program has to ask the user for two integers and calculate sum, difference, product, division (no decimals) and remainder.<\/span><\/p>\n

lets start with the input function so we can enter the numbers for the operations. use a variable like “x” and write this:<\/span><\/p>\n

x = int(input()) \u00a0 <\/span><\/p>\n

also you can add text in the input function to tell the user what you want him to input:<\/span><\/p>\n

x = int(input(“enter an integer: “)<\/span><\/p>\n

repeat the line with another variable like “y”\u00a0<\/span><\/p>\n

y = int(input(“enter an integer: “)<\/span>
<\/span><\/p>\n

now let’s start with the calculations, set a different variable for each one and the rigth operators:\u00a0<\/span><\/p>\n

+, -, *, \/ and %<\/span><\/p>\n

example: a = x+y<\/span><\/span><\/p>\n

if you didn’t used the “int” function it won’t add them like 1+2=3 but it would go like this 1+2=12. that was my problem when writing the line.<\/span><\/p>\n

finish the rest of the operations and then the print function:<\/span><\/p>\n

print (a)<\/span>\u00a0 ——here goes the variable you want to print.<\/span><\/p>\n

and thats it.<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\n

\n 1 min read <\/span>\n <\/p>\n

#WSQ03<\/a> #TC1014<\/a><\/span><\/p>\n

this time the program has to ask the user for two integers and calculate sum, difference, product, division (no decimals) and remainder.<\/span><\/p>\n

lets start with the input function so we can enter the numbers for the operations. use a variable like “x” and write this:<\/span><\/p>\n

x = int(input())   <\/span><\/p>\n

also you can add text in the input function to tell the user what you want him to input:<\/span><\/p>\n

x = int(input(“enter an integer: “)<\/span><\/p>\n

repeat the line with another variable like “y” <\/span><\/p>\n

y = int(input(“enter an integer: “)<\/span>
<\/span><\/p>\n

now let’s start with the calculations, set a different variable for each one and the rigth operators: <\/span><\/p>\n

+, -, *, \/ and %<\/span><\/p>\n

example: a = x+y<\/span><\/span><\/p>\n

if you didn’t used the “int” function it won’t add them like 1+2=3 but it would go like this 1+2=12. that was my problem when writing the line.<\/span><\/p>\n

finish the rest of the operations and then the print function:<\/span><\/p>\n

print (a)<\/span>  ——here goes the variable you want to print.<\/span><\/p>\n

and thats it.<\/span><\/p>\n<\/div>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":128,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[45,93],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/1720"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/128"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=1720"}],"version-history":[{"count":5,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/1720\/revisions"}],"predecessor-version":[{"id":7173,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/1720\/revisions\/7173"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=1720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=1720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=1720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}