# python eval

```#eval()
z=eval(input("enter the list:"))
n=int(input("enter the list to search:"))
freq=z.count(n)
if freq>0:
print(n,"occurs",freq,"times")
else:
print(n,"does not occur")```

Here is what the above code is Doing:
1. It takes a list as input from the user.
2. It takes a number as input from the user.
3. It counts the number of times the number occurs in the list.
4. If the number occurs more than 0 times, it prints the number and the number of times it occurs.
5. If the number does not occur, it prints the number and says that it does not occur.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8369245,"math_prob":0.99790573,"size":548,"snap":"2022-05-2022-21","text_gpt3_token_len":146,"char_repetition_ratio":0.20404412,"word_repetition_ratio":0.04347826,"special_character_ratio":0.28284672,"punctuation_ratio":0.1641791,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99458694,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-16T16:19:39Z\",\"WARC-Record-ID\":\"<urn:uuid:37cdc650-9bb1-423e-b31d-150a1a942b08>\",\"Content-Length\":\"87458\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:33aef407-e8d2-4372-b0f9-b2a3217d4c4f>\",\"WARC-Concurrent-To\":\"<urn:uuid:5102503a-bccb-4a0a-a417-6637025b8133>\",\"WARC-IP-Address\":\"172.67.165.76\",\"WARC-Target-URI\":\"https://myedukit.com/coders/python-examples/python-eval/\",\"WARC-Payload-Digest\":\"sha1:7AFFO6ZTZ437G75CAPK4CNCBBNTFDHDZ\",\"WARC-Block-Digest\":\"sha1:NKDQTKZIULVJ67FQCJFUDRFS7VMHJXTI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662510138.6_warc_CC-MAIN-20220516140911-20220516170911-00344.warc.gz\"}"}