Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

peterdb

  • 3 years ago

Ex. 2.3 How do you code for log base 7 in Python, I can write it for log base 10 but not for 7 ,I just get error messages.

  • This Question is Open
  1. tordan64
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    the function math.log(n, b) should work, where "b" represents the base you want to use

  2. seesiva
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    import math math.log(2,7)

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy