---
title: "Discussion on \"Functions\" | Hashnode"
description: "Discussion on \"Functions\". 1. Defining a Function\nA function in Python is a block of reusable code that performs a specific action. It is defined using the def keyword, followed by the function name and parentheses.\nExample:\ndef greet():\n    print(\"Hello, world!\")\n\n2. Calling ..."
url: "https://hashnode.com/posts/functions/66b0e7e829663a35703c4e6a"
---

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

Discussion

# [Functions](https://nikhilkandi.hashnode.dev/functions?utm_source=hashnode&utm_medium=feed)

1\. Defining a Function A function in Python is a block of reusable code that performs a specific action. It is defined using the def keyword, followed by the function name and parentheses. Example: def greet(): print("Hello, world!") 2. Calling ...

Aug 5, 2024 · 4 min read · nikhilkandi.hashnode.dev  
Read the article

## Written by

[Nikhil Reddy Kandi](https://hashnode.com/@nikhilkandi)

@nikhilkandi

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
