Data Science - Sec1
Data Science - Sec1
Science
Section1
Variables
Variables
• Variables are essentially a place to store different data. Almost always, its
easier to work with different data types in python by using variables.
• In python we don't have to explicitly declare a variable to create them, in
fact, the variable is created in the same statement where we assign a data
to it.
• Assignment of variables in Python happens using assignment operator (=).
Variables Naming Rules
▪ update() method will update or adding the dictionary with the items from
the given argument
Operators
Arithmetic Operations
➢Note: the floor division // rounds the result down to the nearest whole
number
Logical Operations