Share your repls and programming experiences

← Back to all posts
Calculator
RileyMears

regular simple calculator using python. one of the simplest things ever

beta link:
https://repl.it/talk/share/Calculator-beta/84780

archive:
1.1: i forgot to archive it
1.0: https://repl.it/talk/share/Calculator-10/85966

Shoutouts:

JBYT27
RhinoRunner
TheCheeseCoder
BoTie
RahulChoubey1
Coder100

Helpers:

JBYT27

Voters
TheCheeseCoder
RileyMears
RhinoRunner
clrmist21lukasz
MaxwellParish
Comments
hotnewtop
TheCheeseCoder

@RileyMears ohh ok great job!

RahulChoubey1

non-numbers cause errors

RileyMears

@RahulChoubey1 because its a calculator and you dont need non numbers (i used ints) what need would you have for using letters? its a simple calculator

RahulChoubey1

@RileyMears It raises an error. Can you fix that and put something like "numbers only"?

RileyMears

@RahulChoubey1 i will fix it on the beta first than the update will come to this one
Beta:https://repl.it/talk/share/Calculator-beta/84780
i dont want to go through and put an if statement for every letter so it will still raise an error but it will say numbers only

TheCheeseCoder

you could add more math functions with importing the math module....

RileyMears

@TheCheeseCoder Im relatively new to python so i dont know how to use the import function very well

RhinoRunner

if you use float instead of int people can use decimals

RileyMears

@RhinoRunner thanks for the advice

JBloves27

Pretty cool!

RileyMears

@JBYT27 thank you!

JBloves27
RileyMears

@JBYT27 if you really liked it you can check out the beta if you want: https://repl.it/talk/share/Calculator-beta/84780

JBloves27
RileyMears

@JBYT27 :) you even get a shoutout

JBloves27

yay! :D @RileyMears

MaxwellParish

good job ry

MaxwellParish

great coding creation

RileyMears

if you want to try the beta here is the link https://repl.it/talk/share/Calculator-beta/84780

RileyMears

oh wow already got someone to see my creation!
that was faster than normal