Skip to content

Instantly share code, notes, and snippets.

@rishisidhu
Created April 10, 2020 10:59
Show Gist options
  • Save rishisidhu/5d9ff888dca915405617dbec69e2541a to your computer and use it in GitHub Desktop.
Save rishisidhu/5d9ff888dca915405617dbec69e2541a to your computer and use it in GitHub Desktop.
Understanding the basic types in Python
in1 = 1+2j # Complex Number 
fl1 = 0.78 # Float 
fl2 = 2.6e-2 # Float with scientific notation. e means 10^ 
fl3 = 1.8*10**308 +1 # One greater than the maximum float 
bl1 = True # Boolean True 
bl2 = False # Boolean False 
st1 = "Hello World!" # String 
bt1 = b"hola" # Byte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment