Computer Science, asked by Deval4856, 9 months ago

What are variables in Python ??

Answers

Answered by gchan1069
4

Answer:

Variables are containers for storing data values.

Variables are containers for storing data values.Unlike other programming languages, Python has no command for declaring a variable.

Variables are containers for storing data values.Unlike other programming languages, Python has no command for declaring a variable.A variable is created the moment you first assign a value to it.

Variable Names

Variable NamesA variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:

Variable NamesA variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:A variable name must start with a letter or the underscore character

Variable NamesA variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:A variable name must start with a letter or the underscore characterA variable name cannot start with a number

Variable NamesA variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:A variable name must start with a letter or the underscore characterA variable name cannot start with a numberA variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )

Variable NamesA variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:A variable name must start with a letter or the underscore characterA variable name cannot start with a numberA variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )Variable names are case-sensitive (age, Age and AGE are three different variables)

Answered by CoolTechyGuy
0

Answer:

A Python variable is a symbolic name that is a reference or pointer to an object. Once an object is assigned to a variable, you can refer to the object by that name. But the data itself is still contained within the object.

Attachments:
Similar questions