---
title: "Vas K (@VasK) | Hashnode"
description: "Vas K (@VasK) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@VasK"
---

@VasK

# Vas K

@VasK · Joined April 2022

## Comments

[I tried this for the sum\_of\_first\_n\_nos def sum\_of\_first\_n\_nos(n): return sum\_acc(0, n) def sum\_acc(acc, n): if n == 0: return acc return sum\_acc(n + acc, n - 1) if \_\_name\_\_ == "\_\_main\_\_": print(sum\_of\_first\_n\_nos(5)) Output: 15](https://hashnode.com/posts/recursion-part-5-exercises-in-tail-recursion--deleted/625ea67657bc361115203eb6/comment/626143857019274627fd95db)

Comment · Article · Apr 21, 2022 · [Recursion Part 5: Exercises in tail recursion](https://hashnode.com/posts/recursion-part-5-exercises-in-tail-recursion--deleted/625ea67657bc361115203eb6)
