---
title: "Discussion on \"Classes and Functions\" | Hashnode"
description: "Discussion on \"Classes and Functions\". The basic purpose of classes and functions is to group together pieces of related code. The major difference between the two is that a function does something whereas a class is something.\nFor example, if person was a class, walk() and eat() would be..."
url: "https://hashnode.com/posts/classes-and-functions/610ffb60528eff11aea8b402"
---

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

Discussion

# [Classes and Functions](https://blog.vicentereyes.org/classes-and-functions?utm_source=hashnode&utm_medium=feed)

The basic purpose of classes and functions is to group together pieces of related code. The major difference between the two is that a function does something whereas a class is something. For example, if person was a class, walk() and eat() would be...

Apr 22, 2019 · 2 min read · blog.vicentereyes.org  
Updated Apr 29, 2023  
Read the article

-   [#django](https://hashnode.com/tag/django)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Vicente Reyes](https://hashnode.com/@vgreyes)

@vgreyes · MNL

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

Web Developer | Technical Writer | OSS Contributor | Musician | Gamer

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
