Answers for "what is literal_eval in python"

1

eval function in python

#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")
Posted by: Guest on December-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language