---
title: "Discussion on \"Tail recursion in python 🐍\" | Hashnode"
description: "Discussion on \"Tail recursion in python 🐍\". A recursive function is tail recursive when recursive call is the last thing executed by the function i.e the function returns a call to itself.\nWhy to care about tail-recursion?🤔\nThe tail recursive functions considered better than naive functions a..."
url: "https://hashnode.com/posts/tail-recursion-in-python/5f8d10ab89e922309e0124fb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Tail recursion in python 🐍](https://apoorvtyagi.tech/tail-recursion-in-python?utm_source=hashnode&utm_medium=feed)

A recursive function is tail recursive when recursive call is the last thing executed by the function i.e the function returns a call to itself. Why to care about tail-recursion?🤔 The tail recursive functions considered better than naive functions a...

Oct 19, 2020 · 5 min read · apoorvtyagi.tech  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#python](https://hashnode.com/tag/python)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#blogging](https://hashnode.com/tag/blogging)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

@apoorvtyagi · India

  
[View profile](https://hashnode.com/@apoorvtyagi)

Senior Software Engineer | Tech Blogger | !(Chess GM)

Senior Software Engineer. I write about practical tips and epic stories about my experiences in the field of computer science and engineering!

## Responses 2

Markdown supported · ⌘↵ to post

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat)

[Oct 22, 2020](https://hashnode.com/posts/tail-recursion-in-python/5f8d10ab89e922309e0124fb/comment/5f91bf776aa1ed54804bad57)

Nicely explained! Bookmarked!

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Oct 22, 2020](https://hashnode.com/posts/tail-recursion-in-python/5f8d10ab89e922309e0124fb/comment/5f91bf776aa1ed54804bad57#reply-5f91c02d6aa1ed54804bad77)

Thank You :)

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Oct 20, 2020](https://hashnode.com/posts/tail-recursion-in-python/5f8d10ab89e922309e0124fb/comment/5f8e9a061a610045ce581501)

Really insightful, thanks for sharing!

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Oct 20, 2020](https://hashnode.com/posts/tail-recursion-in-python/5f8d10ab89e922309e0124fb/comment/5f8e9a061a610045ce581501#reply-5f8ea1851a610045ce581587)

Thank you so much [Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji) . I am super glad you liked it😊
