Skip to content
Sign upLog in

2 Line Calculator

Profile icon

I made a calculator in Python using only 2 lines. Give me tips on how to make it 1 line.

Thanks to

, I was able to shorten this calculator to 1 line.

You are viewing a single comment. View All
Profile icon

It has to be that way to make it so short. I know that if it doesn't understand it will give an error. Adding an except loop would completely ruin the point of the calculator.