Menu

day 2 python
πŸ“°

day 2 python

DEV Community: beginnersΒ·Harish rajΒ·about 8 hours ago
#HMuflDBn
#devtobeginners#devto#dev#python#name
Reading 0:00
15s threshold

Introduction

Today, I learned about Python identifiers, variables, reserved keywords, built-in functions, data types, and ASCII. These are the fundamental concepts of Python programming that help us write and understand programs effectively.

Variables and Identifiers in Python A variable is a name used to refer to a value in a program. In Python, a variable is created when we assign a value to a name.

An identifier is the name used to identify a variable, function, class, or another programming object.

Syntax:

name = "Harish"

age = 23

Here:

name and age are identifiers.

"Harish" and 23 are values.

= is the assignment operator.

The assignment operator assigns the value on the right-hand side to the name on the left-hand side.

Python variables are dynamically typed, which means we do not need to declare their data types explicitly.

Rules for Naming Identifiers Python identifiers must follow specific naming rules.

They can contain uppercase letters (A–Z) and lowercase letters (a–z).

They can…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.