---
title: "Discussion on \"Python Basics — Day 2(Variables and Data Types)\" | Hashnode"
description: "Discussion on \"Python Basics — Day 2(Variables and Data Types)\". 01. What is a Variable?\n\nA variable is like a label that stores data.\n\nUse the = operator to assign a value.\n\n\nx = 10          # Integer (int)\ny = 3.14        # Floating-point number (float)\nname = \"Sabin\"  # String (str)\nis_ok = True    # Boolean (b..."
url: "https://hashnode.com/posts/python-basics-day-2variables-and-data-types/68d2d90e14d90ddeae5cfca8"
---

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

Discussion

# [Python Basics — Day 2(Variables and Data Types)](https://sabinsim.hashnode.dev/python-basics-day-2variables-and-data-types?utm_source=hashnode&utm_medium=feed)

01\. What is a Variable? A variable is like a label that stores data. Use the = operator to assign a value. x = 10 # Integer (int) y = 3.14 # Floating-point number (float) name = "Sabin" # String (str) is\_ok = True # Boolean (b...

Sep 23, 2025 · 2 min read · sabinsim.hashnode.dev  
Updated Oct 4, 2025  
Read the article

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

## Written by

[Sabin Sim](https://hashnode.com/@sabinsim)

@sabinsim · Graubunden, Switzerland

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

Coding, Learning, Growing — one project at a time

Aspiring Full-Stack Developer | Python · Django · React · SQL | documenting my learning journey Building skills in Python and full-stack development, with a focus on web apps and system design Junior developer in training — Python, Django, React — preparing for a career in full-stack engineering From Python basics to full-stack projects, sharing my progress as I grow into a developer Future full-stack engineer | Learning in public: Python, APIs, Databases, and Web Development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
