filmov
tv
How to make One Line calculator in Python | Very Easy

Показать описание
Hello Guys,
In this tutorial I am going to teach you how to make an one like calculator in python.
This,
✅Runs Forever
✅ Accurate Answer
✅200% Faster
✅One Line
WORKING-------------------------------
What it does, is that the while loop runs forver because of while 1. And then we print the Answer. But this doesn't make any sense? Because when we run the script, it will just print the word answer. How we can type the question? Like 1 + 1 equals what? Hopefully we have the solution for it. This script first runs, then magic happens here. Instead of the print Answer, the eval script runs then It calculates the answer. The str converts the numbers into strings. Input allows us to write the question. After these run, the print script runs and prints the word answer and the solution for the question.
Music used in this video 🎵
Hard by Infraction
⏱️Timestamps--------------------------------------
Coming Soon...
In this tutorial I am going to teach you how to make an one like calculator in python.
This,
✅Runs Forever
✅ Accurate Answer
✅200% Faster
✅One Line
WORKING-------------------------------
What it does, is that the while loop runs forver because of while 1. And then we print the Answer. But this doesn't make any sense? Because when we run the script, it will just print the word answer. How we can type the question? Like 1 + 1 equals what? Hopefully we have the solution for it. This script first runs, then magic happens here. Instead of the print Answer, the eval script runs then It calculates the answer. The str converts the numbers into strings. Input allows us to write the question. After these run, the print script runs and prints the word answer and the solution for the question.
Music used in this video 🎵
Hard by Infraction
⏱️Timestamps--------------------------------------
Coming Soon...