6/10/22, 9:53 AM Variables | Programiz PRO
Become a Python Master > Learn Python Basics
Introduction
Back to Previous Lesson
Get Started
Numbers and Text
Create Variables
Comments
The syntax to create variables is pretty simple.
Variables
Output
x = 25
Arithmetic Operators
Data Conversion
Here,
Get User Input
x is a variable
Introduction Examples
it is storing an integer value 25
Summary
the = operator is used to assign values to
variables
Control Flow
Functions
Data Types
Completing Basics
Figure: Assign Value to Variable
Projects
x = 25
name = 'Mia'
Here, we have created two variables:
the x variable is storing an integer value 25
the name variable is storing a string value 'Mia'
Next: Quiz: Create Variables
https://app.programiz.pro/course/learn-python-basics/variables?page=2 1/1