I made a calculator in python without importing 'math' or using 'eval'
ANDREWVOSS

On the first line, type your first number, on the second line, type your operator, on the third line, type the second number, and on the fourth line, type "=" and press enter.

The syntax should look like this:

The operators are:

"+" for addition

"-" for subtraction

"*" or "x" for multiplication

"/" for division

"^" or "**" for exponents

"//" or "/*" for roots (example: 8 // 3 is the cube root of 8.)

"," for fractions (example: 2 , 3 is the fraction 2/3.)

You are viewing a single comment. View All
ApoorvAgrawal

@ANDREWVOSS
how doesn't it work, it works for me