Skip to content

ShivaShirsath/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python


Data Types
0               # int
1.2             # float
3 + 4j          # complex
''              # str
[]              # list
()              # tuple
True or False   # bool
{0, 1.2, 3+4j}  # set
{'key':"value"} # dict
Operators
Arithmetic operators
      +  # Addition
      -  # Substraction
      *  # Multiplication
      ** # Exponent
      /  # Division
      // # Floor Division
      %  # Modulus    
Comparison operators
      <  # Less than
      <= # Less than equal to
      >  # Greater than
      >= # Greater than equal to
      == # Equal to
      != # not equal to
Assignment Operators
      =   # assig to left
      +=  # Addition and assign to left
      -=  # Substraction and assign to left
      *=  # Multiplication and assign to left
      **= # Exponent and assign to left
      /=  # Division and assign to left
      //= # Floor Division and assign to left
      %=  # Modulus and assign to left
      &=  # Bitwise AND and assign to left
      |=  # Bitwise OR and assign to left
      ^=  # Bitwise xOR and assign to left
      >>= # Bitwise right shift and assign to left
      <<= # Bitwise left shift and assign to left
Logical Operators
      and # Logical AND
      or  # Logical OR
      not # Logical NOT
Bitwise Operators
      &  # Bitwise AND
      |  # Bitwise OR
      ~  # Bitwise NOT
      ^  # Bitwise XOR
      >> # Bitwise right shift
      << # Bitwise left shift
Membership Operators
  in     #     in the sequence
  not in # not in the sequence
Identity Operators
      is     #     identical
      is not # not identical 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages