Skip to content

Instantly share code, notes, and snippets.

@sazid
Created May 11, 2018 17:16
Show Gist options
  • Save sazid/48c5c1915765a64b38f9985bf91890f7 to your computer and use it in GitHub Desktop.
Save sazid/48c5c1915765a64b38f9985bf91890f7 to your computer and use it in GitHub Desktop.
# We multiply 10s 4 times together to get 10000
print(10*10*10*10)
print(2*2*2*2*2)
from math import log, ceil
print(log(10000, 10)) # how many times do we multiply 10 together to get 10000?
print(log(32, 2)) # how many times do we multiply 2 together to get 32?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment