# log10() function in python by R4R Team

-log10() is a python function which is predefined in math library. and use for find the value of log with base 10

Example-

number is 1000
log10 will give 3.0

number is 10
log10 will give 1.0

number is 565
log10 will give 2.7520484478194387

program-

import math
print("Enter any number")
a=int(input())
print("Log10 of number is "+str(math.log10(a)))

print("Enter another number")
a=int(input())
print("Log10 of number is "+str(math.log10(a)))

output-

Enter any number
565
Log10 of number is 2.7520484478194387
Enter another number
34
Log10 of number is 1.5314789170422551

Enter any number
1000
Log10 of number is 3.0 Enter another number
100
Log10 of number is 2.0

-In this program, firstly we import the 'math' library by using import math then take a input of integer value and print the log10 value.
{"ft_lang_label":"__label__en","ft_lang_prob":0.78230107,"math_prob":0.9957895,"size":656,"snap":"2019-35-2019-39","text_gpt3_token_len":204,"char_repetition_ratio":0.22546013,"word_repetition_ratio":0.06185567,"special_character_ratio":0.3917683,"punctuation_ratio":0.07575758,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9986027,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-17T01:14:04Z\",\"WARC-Record-ID\":\"<urn:uuid:2601bec3-a8a8-421e-b4cc-d7133f01caae>\",\"Content-Length\":\"285733\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:22be1b3d-5c69-4d4a-b982-91173347e4d8>\",\"WARC-Concurrent-To\":\"<urn:uuid:0ea261c2-3b99-4387-8514-e179d561c4d2>\",\"WARC-IP-Address\":\"166.62.27.181\",\"WARC-Target-URI\":\"http://r4r.in/python/topic/post.php?ct=16&subct=130&tp=932\",\"WARC-Payload-Digest\":\"sha1:P4DWC7ENRUSARKSE2IUOMXZVFTUAJAZQ\",\"WARC-Block-Digest\":\"sha1:JMYPOIJI4FMUMVPPSQLCFN2V3ZYJN62S\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514572980.56_warc_CC-MAIN-20190917000820-20190917022820-00205.warc.gz\"}"}