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

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

@CodingCactus Fair enough. That is a lot more simple, but my build supports fractions and custom syntax, so I didn't completely waste my time.