0% found this document useful (0 votes)
2 views2 pages

Python?? ?

The document explains the concept of variables, which are temporary memory locations used to store values during program execution. It outlines the need for variables to store user input and operation results, along with rules for naming variables and different data types such as numbers, strings, and booleans. Additionally, it covers various operations including arithmetic, exponentiation, and comparison operators.

Uploaded by

neha.das
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)
2 views2 pages

Python?? ?

The document explains the concept of variables, which are temporary memory locations used to store values during program execution. It outlines the need for variables to store user input and operation results, along with rules for naming variables and different data types such as numbers, strings, and booleans. Additionally, it covers various operations including arithmetic, exponentiation, and comparison operators.

Uploaded by

neha.das
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/ 2

Variables-[identification]

use to store value


Are temporary memory locations location on a ram
Value in variable remains their till you run the program is running

Need of variables.
To store the input given to user
To store result of operation

Rules
No space while giving name/special symbols
Shouldn’t start with a number
It shouldn’t have capital alphabet in the starting

Data types
Number (whole number only)
If fractions then it’s going to go a data “fetch”
String
Anything that you write single,double,triple quote get’s string
Boolean
It can be true or false
Eg:- 9>7 T
9>7 9>10
T F

Operations
Arithmetic equation: +,-,/,*
%- Modulus ( To get a reminder)
\\- True division (To get a quotient)

Exponent operators:
n**p
6**2

Comparison operators: >,< , >= , != , ==


Eg: 7 is equal to 2
x=7
y=2
r=x==4
Print (cr)
False

You might also like