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":6494,"date":"2015-02-19T11:59:00","date_gmt":"2015-02-19T17:59:00","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?guid=996d658160d436d9d9ebf8b2c5fe1109"},"modified":"2015-02-19T12:01:28","modified_gmt":"2015-02-19T18:01:28","slug":"mastery11-how-to-call-a-fuction-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery11-how-to-call-a-fuction-2\/","title":{"rendered":"#Mastery11 how to call a fuction."},"content":{"rendered":"

Calling a fuction its exactly what it sounds like. You are telling the fuction to act on the values you have stablished.  to call a fuction  first you must have a variable that will get the return value of your fuction.<\/p>\n

\"#Mastery11<\/a><\/div>\n

example:<\/p>\n

lets say you crated a fuction called:<\/b> make_sum.<\/p>\n

the fuction would look like this:<\/b><\/p>\n

def<\/span><\/span> <\/span>make_sum<\/span><\/span>(x,y):<\/span><\/div>\n
ans=x+y<\/span><\/div>\n

   return<\/span> ans<\/span><\/span>

<\/span><\/span>so in your code you would create a varible, lets say:<\/b><\/span><\/span>

<\/span><\/span>the_sum =<\/span><\/span>

<\/span><\/span>then you write the fuction, adding the values that you want it to take.<\/b><\/span><\/span>

<\/span><\/span>the_sum = make_sum(2<\/span>,5<\/span>)<\/span><\/span>

<\/span><\/span>so: <\/b><\/span><\/span>
make_sum<\/span><\/span>(x,y):<\/span><\/p>\n

ans=x+y<\/span><\/div>\n

   return<\/span> ans<\/span><\/span>
will become:<\/b><\/p>\n

make_sum<\/span><\/span>(2<\/span>,5<\/span>):<\/span><\/div>\n
ans=2<\/span>+5<\/span><\/span><\/div>\n

   return<\/span> ans<\/span><\/span><\/p>\n

and the variable the_sum will receve the return value of:<\/b><\/span>

<\/span><\/p>\n

make_sum<\/span><\/span>(2<\/span>,5<\/span>):<\/span><\/div>\n
ans=2<\/span>+5<\/span><\/span><\/div>\n

   return<\/span> ans<\/span><\/span>
wich in this case is 7<\/span>.<\/b><\/span><\/span><\/p>\n

The Fun with numbers code in here<\/a> shows an example of a program that calls differnt fuctions.<\/span>

<\/span>note: is very usefull to create your fuctions in a separate place from the rest of the code.<\/span>

<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

Calling a fuction its exactly what it sounds like. You are telling the fuction to act on the values you have stablished.  to call a fuction  first you must have a variable that will get the return value of your fuction.example:lets say you cr… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":49,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[128,45,61,62],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6494"}],"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\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=6494"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6494\/revisions"}],"predecessor-version":[{"id":6495,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/6494\/revisions\/6495"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=6494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=6494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=6494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}