{"id":17488,"date":"2021-10-27T18:13:26","date_gmt":"2021-10-27T12:43:26","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=17488"},"modified":"2021-10-27T18:13:26","modified_gmt":"2021-10-27T12:43:26","slug":"qa-day3-live-session-review","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/","title":{"rendered":"Python Methods and Functions Q&#038;A: Day3 Live Session Review"},"content":{"rendered":"<p>Functions in Python<\/p>\n<p>\u21ac A function is a block of code that only runs when it is called. Python functions return a value using a return statement if one is specified.<\/p>\n<p>\u21ac A function can be called anywhere after the function has been declared. Keyword def marks the start of the function header. :heavy_Types of functions<\/p>\n<p>Built-in functions<\/p>\n<p>User-Defined Functions<\/p>\n<p>Anonymous functions<\/p>\n<p>Functions vs Methods Method and a function are the same, with different terms.<\/p>\n<p>\u21ac A function is a piece of code that is called by name. It can be passed data to operate on (i.e. the parameters) and can optionally return data (the return value). All data that is passed to a function is explicitly passed.<\/p>\n<p>\u21ac A method is a piece of code that is called by a name that is associated with an object.<\/p>\n<p>\u21ac In most respects, it is identical to a function except for two key differences: A method is implicitly passed the object on which it was called. A method is able to operate on data that is contained within the class.<\/p>\n<p>To know more about these Python Loops and Control Statements covered in our Day 3 session Check my blog at: <a href=\"https:\/\/k21academy.com\/datascience\/python\/day3-faqs\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=pythonday3_october21\"><em><strong>k21academy.com\/pythonday3<\/strong><\/em><\/a> Topics covered in this blog are:<\/p>\n<p>Functions in Python<\/p>\n<p>Functions vs Methods<\/p>\n<p>Join our\u00a0<a href=\"https:\/\/k21academy.com\/python-certification-free-class?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=python02_october21\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Free Class<\/strong><\/a>\u00a0to know more about it.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/k21academy.com\/wp-content\/uploads\/2021\/10\/CU_FC_Pythongif.gif\" alt=\"Free Class Python\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Functions in Python \u21ac A function is a block of code that only runs when it is called. Python functions [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":17489,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[555,574],"tags":[],"class_list":["post-17488","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Methods and Functions Q&amp;A: Day3 Live Session Review<\/title>\n<meta name=\"description\" content=\"In this blog, we are going to cover some questions and answers asked us in Python for DS\/DE Day 3 Live session covering python Methods and Functions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Methods and Functions Q&amp;A: Day3 Live Session Review\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to cover some questions and answers asked us in Python for DS\/DE Day 3 Live session covering python Methods and Functions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-27T12:43:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1272\" \/>\n\t<meta property=\"og:image:height\" content=\"711\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/\",\"name\":\"Python Methods and Functions Q&A: Day3 Live Session Review\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png\",\"datePublished\":\"2021-10-27T12:43:26+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"description\":\"In this blog, we are going to cover some questions and answers asked us in Python for DS\/DE Day 3 Live session covering python Methods and Functions.\",\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#primaryimage\",\"url\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png\",\"contentUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png\",\"width\":1272,\"height\":711},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Methods and Functions Q&#038;A: Day3 Live Session Review\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Methods and Functions Q&A: Day3 Live Session Review","description":"In this blog, we are going to cover some questions and answers asked us in Python for DS\/DE Day 3 Live session covering python Methods and Functions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/","og_locale":"en_US","og_type":"article","og_title":"Python Methods and Functions Q&A: Day3 Live Session Review","og_description":"In this blog, we are going to cover some questions and answers asked us in Python for DS\/DE Day 3 Live session covering python Methods and Functions.","og_url":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/","article_published_time":"2021-10-27T12:43:26+00:00","og_image":[{"width":1272,"height":711,"url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png","type":"image\/png"}],"author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/","url":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/","name":"Python Methods and Functions Q&A: Day3 Live Session Review","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#primaryimage"},"thumbnailUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png","datePublished":"2021-10-27T12:43:26+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"description":"In this blog, we are going to cover some questions and answers asked us in Python for DS\/DE Day 3 Live session covering python Methods and Functions.","breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#primaryimage","url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png","contentUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/image-5-2.png","width":1272,"height":711},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/27\/qa-day3-live-session-review\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Python Methods and Functions Q&#038;A: Day3 Live Session Review"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/17488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=17488"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/17488\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media\/17489"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=17488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=17488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=17488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}