---
title: "Discussion on \"Python code basics -object,class\" | Hashnode"
description: "Discussion on \"Python code basics -object,class\". reference:https://www.w3schools.com/python/python_classes.asp\nQuestion: Insert a function that prints a greeting, and execute it on the v1 object:\nSteps:\n-define class\n-define function\n-define object -assign on object\nFirst, we have to initialize the..."
url: "https://hashnode.com/posts/python-code-basics-objectclass/60a30484eeabf031a1a95608"
---

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

Discussion

# [Python code basics -object,class](https://justathought.hashnode.dev/python-code-basics-objectclass?utm_source=hashnode&utm_medium=feed)

reference:https://www.w3schools.com/python/python\_classes.asp Question: Insert a function that prints a greeting, and execute it on the v1 object: Steps: -define class -define function -define object -assign on object First, we have to initialize the...

May 18, 2021 · 2 min read · justathought.hashnode.dev  
Read the article

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

## Written by

[JustaThought](https://hashnode.com/@Justx)

@Justx

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

Technical articles, thoughts and life tips for inattentive mind

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
