Most simple CALCULATOR in python .Learning Python project-2

Опубликовано: 27 Август 2026
на канале: Yuzi
4
0

Learning how to make Most simple CALCULATOR in python

source code : import operator

first_number = float(input("Input your first number : "))
second_number = float(input("Input your second number : "))
operator = {
"+" : operator.add ,
"-" : operator.sub ,
"x" : operator.mul ,
"/" : operator.truediv ,
}

input_operator = input("Input your operator (+ , - , x , / ) : ")

Result = operator[input_operator](first_number,second_number)

print(f"Result = {Result}")





------------------------------------------------------------
worry (ultra slowed) · LONOWN · riserayss

worry (ultra slowed)

℗ ARCADIA

Released on: 2026-03-13

Composer: Steve Starkoff
Composer: Alexey Tokman
Composer: Walter Afanasieff
Composer: Mariah Carey
Lyricist: Steve Starkoff
Lyricist: Alexey Tokman
Lyricist: Walter Afanasieff
Lyricist: Mariah Carey
Lyricist: Anastasia Lazareva