Using IDLE as a calculator Flashcards
1
Q
How to calculate an arithmetic expression without using the print() function?
A
To calculate an arithmetic expression, it is not necessary to use the print() function. Instead, you can just type it and press the Enter key, which will automatically calculate it and show the result.In this case, the interpreter acts as a simple calculator.
2
Q
How are the expressions calculated?
A
The expressions are calculated using operators such as +,-,*, /, etc.
3
Q
Which rule is followed for performing simple calculations?
A
The basic BODMAS rule is followed for performing simple calculations.
4
Q
What is the shortcut key to repeat the previous command in IDLE?
A
In IDLE, press Alt+P to repeat the previous command.