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":5425,"date":"2015-02-18T23:20:56","date_gmt":"2015-02-19T05:20:56","guid":{"rendered":"http:\/\/gilrg18.withknown.com\/2015\/mastery12-creating-python-functions"},"modified":"2015-02-18T23:20:56","modified_gmt":"2015-02-19T05:20:56","slug":"mastery12-creating-python-functions","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery12-creating-python-functions\/","title":{"rendered":"#mastery12 Creating python functions"},"content":{"rendered":"
\n

I used this link to help me do this mastery: https:\/<\/wbr>\/<\/wbr>docs.python.org\/<\/wbr>2\/<\/wbr>tutorial\/<\/wbr>controlflow.html#defining-functions<\/a><\/p>\n

It is also useful to read chapter 3 of the book “Think Python, How to Think Like a Computer Scientist”, <\/a><\/p>\n

You can see an example of this in my #WSQ08<\/a>. Here’s the code showing the function that i created<\/p>\n

def osuma (num1,num2): #first<\/a> you have to define your function, in this case it’s osuma with num1 and num 2 as parameters<\/p>\n

suma=num1+num2 #This<\/a> is what the function does… this line must be idented so the function can work properly<\/p>\n

return suma  #the return statement returns with a value from a function… this line must be idented so the function can work properly<\/p>\n

 <\/p>\n

num1 = int(input(“Give me a number: “)) <\/p>\n

num2 = int(input (“Give me another number: “))<\/p>\n

su=osuma(num1,num2) #Here<\/a> i called osuma function i defined in order for the variable to take the function’s value<\/p>\n

 <\/p>\n

print (“The sum of your numbers is”, su) <\/p>\n

 <\/p>\n

#mastery12<\/a><\/p>\n

#TC1014<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

I used this link to help me do this mastery: https:\/\/docs.python.org\/2\/tutorial\/controlflow.html#defining-functionsIt is also useful to read chapter 3 of the book “Think Python, How to Think Like a Computer Scientist”,&nb… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[144,295,296,185,129,45,184,133,233],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5425"}],"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\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=5425"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5425\/revisions"}],"predecessor-version":[{"id":7428,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5425\/revisions\/7428"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=5425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=5425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=5425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}