{"id":75324,"date":"2020-01-20T10:16:51","date_gmt":"2020-01-20T04:46:51","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=75324"},"modified":"2020-01-20T10:16:51","modified_gmt":"2020-01-20T04:46:51","slug":"python-functions","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-functions\/","title":{"rendered":"Python Functions &#8211; Engage into the Functions of Python Programming"},"content":{"rendered":"<p>Python is <strong>object-oriented<\/strong> but also supports <strong>functional programming<\/strong>.<\/p>\n<p>In this tutorial, you will learn about <strong>Python functions<\/strong> and will learn to <strong>create<\/strong> them and <strong>call<\/strong> them.<\/p>\n<p>Also, you will get to understand the <strong>parameters<\/strong> of <strong>functions<\/strong> in Python, the <strong>return statement<\/strong>, <strong>anonymous functions<\/strong> in Python, and lastly, you will see what is <strong>recursion in Python<\/strong>.<\/p>\n<h3>What are Functions in Python?<\/h3>\n<p>A function is a<strong> block of code<\/strong> that has a <strong>name<\/strong> and you can <strong>call<\/strong> it. Instead of <strong>writing<\/strong> something 100 times, you can <strong>create a function<\/strong> and then <strong>call it 100 times<\/strong>. You can call it <strong>anywhere<\/strong> and <strong>anytime<\/strong> in your program. This adds <strong>reusability<\/strong> and <strong>modularity<\/strong> to your code.<\/p>\n<p>Functions can take <strong>arguments<\/strong> and <strong>return values<\/strong>.<\/p>\n<h3>Types of Python Functions<\/h3>\n<p>Functions can be of two types &#8211; <strong>built-in<\/strong> or <strong>user-defined<\/strong>.<\/p>\n<p>Python has many useful built-in functions like<strong> print()<\/strong> and <strong>type()<\/strong> but in this article, we will focus on<strong> user-defined functions<\/strong>.<\/p>\n<h3>Creating Functions in Python<\/h3>\n<p>To define a function, we follow this syntax:<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def func(parameters):\n  code\n  return<\/pre>\n<p>To define a function, you use the <strong>def keyword<\/strong>. You give the <strong>function<\/strong> a <strong>name<\/strong> and it can take some <strong>parameters<\/strong> if you want. Then you specify a <strong>block of code<\/strong> that will execute when you <strong>call<\/strong> the <strong>function<\/strong>.<\/p>\n<p>There are <strong>no curly braces<\/strong> in Python and so you need to <strong>indent<\/strong> this <strong>code block<\/strong> otherwise it <strong>won\u2019t work<\/strong>. You can make the function <strong>return a value<\/strong>.<\/p>\n<p>Let\u2019s take an example for you.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def add(a,b):\n  print(\"I will add two numbers\")\n  return a+b<\/pre>\n<p>This function prints \u201cI will two numbers\u201d and <strong>returns<\/strong> the <strong>sum<\/strong> of <strong>two numbers<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(2,4)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">I will add two numbers<br \/>\n6<\/div>\n<h3>Calling Functions in Python<\/h3>\n<p><strong>Calling <\/strong>functions is <strong>simple<\/strong>. Take two functions:<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def sayhi():\n  print('Hi')<\/pre>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def add(a,b):\n  return a+b<\/pre>\n<p>This is how you will call them:<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; sayhi()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Hi<\/div>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(2,4)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<h3>Python Function Parameters<a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/01\/python-function-parameters.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-75591 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/01\/python-function-parameters.jpg\" alt=\"python function parameters\" width=\"659\" height=\"373\" \/><\/a><\/h3>\n<p>Functions can take <strong>values<\/strong> and <strong>operate<\/strong> on them.<\/p>\n<p>In the above example, the <strong>add() function<\/strong> takes <strong>parameters<\/strong> <strong>a<\/strong> and <strong>b<\/strong>.<\/p>\n<p>Python has 3 types of <strong>parameters<\/strong> or <strong>arguments<\/strong> other than positional\/required arguments &#8211; <strong>default<\/strong>, <strong>keyword<\/strong>, <strong>arbitrary<\/strong>.<\/p>\n<h4>1. Default Arguments<\/h4>\n<p>You can <strong>specify<\/strong> a <strong>default value<\/strong> for <strong>arguments<\/strong>. If the user calls the <strong>function<\/strong>, they can <strong>skip<\/strong> providing a <strong>value<\/strong> for that <strong>argument<\/strong>. The default value is <strong>used<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def add(a, b=4):\n  return a+b<\/pre>\n<p>Now you can call it with <strong>one<\/strong> or <strong>two values<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(2,4)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(2)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<p>Here b is 4 by <strong>default<\/strong> so it returns 2+4, which is 6.<\/p>\n<p>Functions can have <strong>any number<\/strong> of <strong>default arguments<\/strong>.<\/p>\n<h4>2. Keyword Arguments<\/h4>\n<p>If you pass keyword <strong>arguments<\/strong> to a <strong>function<\/strong>, you don\u2019t need to remember the <strong>order of the parameters<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def add(a, b):\n  return a+b<\/pre>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(b=4,a=2)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<h4>3. Arbitrary Arguments<\/h4>\n<p>If you don\u2019t know how many arguments your function will get at <strong>runtime<\/strong>, you can use the arbitrary arguments <strong>*args<\/strong> and <strong>**kwargs<\/strong>.<\/p>\n<p><strong>*args<\/strong> is a <strong>variable number<\/strong> of <strong>arguments<\/strong> and <strong>**kwargs<\/strong> is a <strong>variable number<\/strong> of <strong>keyword arguments<\/strong>. You can <strong>call<\/strong> them <strong>anything<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def add(*args,**kwargs):\n  result=0\n  for arg in args:\n    result+=arg\n  print(result)\n  for key,value in kwargs.items():\n    print(key,value)<\/pre>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(2,4,6,a=8,b=10)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">12<br \/>\na 8<br \/>\nb 10<\/div>\n<p>2, 4, 6, are in <strong>*args<\/strong> and a=8 and b=10 are in<strong> **kwargs<\/strong>.<\/p>\n<p>Result is 12.<\/p>\n<p>You cannot <strong>pass positional arguments<\/strong> after <strong>keyword arguments<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add(2,4,6,a=8,7,b=10)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">SyntaxError: positional argument follows keyword argument<\/div>\n<h3>The Return Statement in Python<\/h3>\n<p>It is <strong>not mandatory<\/strong> for a function to <strong>return a value<\/strong> but it can. For this, you use the <strong>return keyword<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def show_names(names):\n  return names<\/pre>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; show_names(['Jack', 'Paris', 'Nicole'])<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">[&#8216;Jack&#8217;, &#8216;Paris&#8217;, &#8216;Nicole&#8217;]<\/div>\n<p>This function returns a <strong>list<\/strong>.<\/p>\n<h3>Anonymous Functions in Python<\/h3>\n<p>If you want a function only once or it has only one <strong>line of code<\/strong>, you can avoid giving it a <strong>name<\/strong>. They are called <strong>lambda expressions<\/strong>.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; lambda a=2,b=4:a+b\n&lt;function &lt;lambda&gt; at 0x00000198A3692168&gt;<\/pre>\n<p>Now to call this:<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; (lambda a=2,b=4:a+b)()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<p>Let\u2019s try more possibilities.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; (lambda a,b:a+b)(2,4)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; add=lambda a,b:a+b\n&gt;&gt;&gt; add(2,4)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">6<\/div>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; (lambda :print('Hi'))()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Hi<\/div>\n<h3>Recursion in Python<\/h3>\n<p>When a function <strong>calls itself<\/strong>, it is <strong>recursion<\/strong>. In other words, when a <strong>function<\/strong> <strong>body<\/strong> has <strong>calls<\/strong> to the <strong>function itself<\/strong>, it is recursion.<\/p>\n<p>For recursion, you should specify a <strong>base condition<\/strong> otherwise the function can <strong>execute infinitely<\/strong>.<\/p>\n<p>Let\u2019s take the example of calculating factorials.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def factorial(num):\n  if num==1: return 1\n  return num*factorial(num-1)<\/pre>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; factorial(4)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">24<\/div>\n<p>factorial(4) returns 4*factorial(3). factorial(3) returns 3*factorial(2). factorial(2) returns 2*factorial(1). factorial(1) returns 1.<\/p>\n<p>So we have 4*3*2*1. This is equal to 24. So it returns the value 24.<\/p>\n<h3>Summary<\/h3>\n<p>We will explain these topics in detail in other tutorials.<\/p>\n<p>This was a brief introduction of TechVidvan&#8217;s <strong>Python functions<\/strong> article. We learned about functions, <strong>creating<\/strong> them, <strong>calling<\/strong> them, <strong>parameters<\/strong>, the <strong>return statement<\/strong>, <strong>lambda expressions<\/strong>, and <strong>recursion<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python is object-oriented but also supports functional programming. In this tutorial, you will learn about Python functions and will learn to create them and call them. Also, you will get to understand the parameters&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":75592,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[1322,1323,1324,1325,1326,1233,1327,1328,1329,1330],"class_list":["post-75324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-anonymous-functions-in-python","tag-calling-functions-in-python","tag-creating-functions-in-python","tag-functions-in-python","tag-python-function-parameters","tag-python-functions","tag-python-user-defined-functions","tag-recursion-in-python","tag-the-return-statement-in-python","tag-types-of-functions-in-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Functions - Engage into the Functions of Python Programming - TechVidvan<\/title>\n<meta name=\"description\" content=\"Python Functions - Learn the concept of functions in Python and its types. Also, learn to create them, call them, its parameters, return statement, etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/python-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Functions - Engage into the Functions of Python Programming - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Python Functions - Learn the concept of functions in Python and its types. Also, learn to create them, call them, its parameters, return statement, etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-20T04:46:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/01\/python-functions.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Functions - Engage into the Functions of Python Programming - TechVidvan","description":"Python Functions - Learn the concept of functions in Python and its types. Also, learn to create them, call them, its parameters, return statement, etc.","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:\/\/techvidvan.com\/tutorials\/python-functions\/","og_locale":"en_US","og_type":"article","og_title":"Python Functions - Engage into the Functions of Python Programming - TechVidvan","og_description":"Python Functions - Learn the concept of functions in Python and its types. Also, learn to create them, call them, its parameters, return statement, etc.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-functions\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-01-20T04:46:51+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/01\/python-functions.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Python Functions &#8211; Engage into the Functions of Python Programming","datePublished":"2020-01-20T04:46:51+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/"},"wordCount":700,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/01\/python-functions.jpg","keywords":["Anonymous Functions in Python","Calling Functions in Python","Creating Functions in Python","functions in python","Python Function Parameters","python functions","Python User-Defined Functions","recursion in python","The Return Statement in Python","Types of Functions in Python"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/","url":"https:\/\/techvidvan.com\/tutorials\/python-functions\/","name":"Python Functions - Engage into the Functions of Python Programming - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/01\/python-functions.jpg","datePublished":"2020-01-20T04:46:51+00:00","description":"Python Functions - Learn the concept of functions in Python and its types. Also, learn to create them, call them, its parameters, return statement, etc.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/01\/python-functions.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/01\/python-functions.jpg","width":802,"height":420,"caption":"python functions"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Python Functions &#8211; Engage into the Functions of Python Programming"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/75324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=75324"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/75324\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/75592"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=75324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=75324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=75324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}