Skip to content
Sign upLog in

2 Line Calculator

Profile icon
DanielSchumache

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

Update:
Thanks to

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

You are viewing a single comment. View All
Profile icon
BestBerry

I did the same thing, too, but good job anyway. I would suggest adding another line and importing the math module. (If you do it with the from math import * syntax, then you don't have to put math. in front of every function)