{"id":54741,"date":"2021-09-30T19:43:42","date_gmt":"2021-09-30T19:43:42","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/09\/30\/create-a-function-in-python\/"},"modified":"2021-09-30T19:43:42","modified_gmt":"2021-09-30T19:43:42","slug":"create-a-function-in-python","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/09\/30\/create-a-function-in-python\/","title":{"rendered":"create a function In Python"},"content":{"rendered":"<p>In Python, create a function that takes a string as an input and returns that string shown in reverse order. e.g. \u201ccat\u201d would be printed as \u201ctac\u201d. You can use either iteration or recursion. submit code with two functions &#8212; one using iterative algorithm and one using recursive algorithm. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Python, create a function that takes a string as an input and returns that string shown in reverse order. e.g. \u201ccat\u201d would be printed as \u201ctac\u201d. You can use either iteration or recursion. submit code with two functions &#8212; one using iterative algorithm and one using recursive algorithm.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28],"class_list":["post-54741","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-computer-science"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/54741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=54741"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/54741\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=54741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=54741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=54741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}