Solve math using python | solve math expression using python | Python | Python short video | python for beginner
hello everyone,
Today you are going to see that how you can solve math expression using python.
For doing this you don't need to install any module there are some inbuild lib which are helpful in performing these kind of activity.
For doing this you must have installed python on PC or laptop and any IDE which supports python, in this video i am using VS code.
There is only two lines of code which you need to type and you can see your output in terminal window.
code -
n = input("Enter the expression : ")
print("result : ",eval(n))
Comments
Post a Comment
Thank you for sharing this.
You’re helping us become better. Want to stay in the loop? Subscribe to our YouTube channel.