0% found this document useful (0 votes)
17 views1 page

Variables - Programiz PRO

The document introduces the concept of variables in Python, explaining how to create them using the syntax 'variable_name = value'. It provides examples of creating variables, such as storing an integer in 'x' and a string in 'name'. The document serves as a foundational lesson in learning Python basics.

Uploaded by

mls250613
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Variables - Programiz PRO

The document introduces the concept of variables in Python, explaining how to create them using the syntax 'variable_name = value'. It provides examples of creating variables, such as storing an integer in 'x' and a string in 'name'. The document serves as a foundational lesson in learning Python basics.

Uploaded by

mls250613
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like