← Back to list

python basics,variables and data types

What is python?

Akash v Nair · 2022-03-30 13:11 · 0 claps · 0.7 min read
#asv
Open on Medium ↗

python basics,variables and data types

What is python?

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.

What can Python do?

  • Python can be used on a server to create web applications.
  • Python can be used to handle big data and perform complex mathematics.

Why Python?

  • Python has a simple syntax similar to the English language.
  • It allows developer simpler with fewer lines of code
  • python can be treated as functional way,procedural way,object oriented way

Example:

print(“Harman”) Harman

Python Variables

Variables are containers for storing data values.

Rules for Python variables:

  • A variable name must start with a letter or the underscore character
  • A variable name cannot start with a number
  • A variable name can only contain alpha-numeric characters and underscores (A-z, 0–9, and _ )
  • Variable names are case-sensitive

Example:

x = 8 y = “John” print(x) print(y)

8

John

Python Data Types

Python has various data types:

  • Numeric (int,float,complex)
  • Boolean
  • strings
  • List
  • Tuples
  • Sets
  • dictionary
  • bits

Examples:

x=”Harman”(str)

x=25(int)

x=12.5(float)

x=1j(complex)

x=True,False(boolean)

x=“abc”, “def”

x=(“abc”, “def”)(tuple)

x={“abc”, “def”}(set)


메타데이터
post_id
fc69bd490362
slug
python-basics-variables-and-data-types-fc69bd490362
url
https://medium.com/@akashvnair328/python-basics-variables-and-data-types-fc69bd490362
canonical_url
https://medium.com/@akashvnair328/python-basics-variables-and-data-types-fc69bd490362
author_url
https://medium.com/@akashvnair328
status
ok
fetched_at
2026-06-13 00:08:42