#59 How to build a Simple Calculator in Python | if-else loop | basic calculator

  Рет қаралды 63,976

Anukrat Mishra

Anukrat Mishra

Күн бұрын

Full programs shorts playlist link:- • Python programs shorts...
Full graphical (turtle programs) playlist link:-
Python graphical programs|turtle programs: • Python graphical progr...
Full Programs video playlist link:- • Python programs shorts...
String operations playlist link:- • String Manipulation | ...
Math module playlist link:- • Math module | Python |...
Here on this channel you get different types of Python programs.So if you like the content hit the like button👍 and subscribe the channel @Anukrat Mishra .
THANK YOU!!!
how to build a simple calculator in python,calculator program in python,learn python,calculator,python,example program,python tutorials,python programming,programming,python video tutorials,python tutorial for beginners,python video tutorials for beginners

Пікірлер: 30
@ToBeMotivate
@ToBeMotivate 5 ай бұрын
Python my favorite language❤ it's so easy.... 🤗
@Anukratmishra
@Anukratmishra 3 ай бұрын
It really is!
@sarikagupta942
@sarikagupta942 7 ай бұрын
Thank you bhai for this 😊
@ArjunDas-vq5rk
@ArjunDas-vq5rk Жыл бұрын
print("select two numbers") n1=float(input("enter first number=")) n2=float(input("enter second number=")) print("calculator menu") print("1.add(+)") print("2.subtract(-)") print("3.multiply(*)") print("4.divide(*)") print("5.exit") op=input("enter operation=") if option=="1": print(n1+n2) elif option=="2": print(n1-n2) elif option=="3": print(n1*n2) elif option=="4": print(n1/n2) elif option=="5": print(exit) else: print("invalid option") Is this code correct for this??
@ishameowkitty
@ishameowkitty 11 ай бұрын
Sorry, no
@ArjunDas-vq5rk
@ArjunDas-vq5rk 11 ай бұрын
@@ishameowkitty it is.
@jarektak
@jarektak 11 ай бұрын
​@@ishameowkittyits correct
@anilmerugu7
@anilmerugu7 8 ай бұрын
There are two mistakes in this code ,1) you wrote * for (print divide ) 2) for enter operation you define option as op other than this ,I executed the code its working fine.
@ArjunDas-vq5rk
@ArjunDas-vq5rk 8 ай бұрын
@@anilmerugu7 yes, sorry i didn't checked the code before posting
@silentgamerfreefire3327
@silentgamerfreefire3327 10 ай бұрын
x='Yes' while x =='Yes' or x=='yes': a=float(input('Enter first no.:')) b=float(input('Enter second no.:')) y = input('Enter a sign b/w +,-,*,/,**,//:') if y=='+': c=a+b print('Sum is',c) elif y=='-': c=a-b print('Subtraction is',c) elif y=='*': c=a*b print('Multiplication is',c) elif y=='/': c=a/b print('Float division is',c) elif y=='**': c=a**b print('a to the power b is',c) elif y=='//': c=a//b print('Integer division is',c) else: print('Give a valid input') x=input('Enter Yes to run code or NO to stop code:')
@hindiwhatsappstatus1000
@hindiwhatsappstatus1000 8 ай бұрын
How can we copy
@sairoshikkandula578
@sairoshikkandula578 11 ай бұрын
There is an error in the code that it will not return to have the new values.
@Ayush_pandey2
@Ayush_pandey2 2 ай бұрын
U should have to use float in place of integer.
@antxnioo
@antxnioo Жыл бұрын
Yandere Simulator code moment
@distantembraces
@distantembraces 9 ай бұрын
Match case will be better
@HARSH-qw8oz
@HARSH-qw8oz 3 ай бұрын
THIS ONE IS RIGHT CODE TRY THIS > > > > > > > print("select two numbers") n1=float(input("enter first number=")) n2=float(input("enter second number=")) print("calculator menu") print("1.add(+)") print("2.subtract(-)") print("3.multiply(*)") print("4.divide(*)") print("5.exit") op=input("enter operation=") if op=="1": print(n1+n2) elif op=="2": print(n1-n2) elif op=="3": print(n1*n2) elif op=="4": print(n1/n2) elif op=="5": print(exit) else: print("invalid option")
@Anukratmishra
@Anukratmishra 3 ай бұрын
@gouravgurjar9668
@gouravgurjar9668 Жыл бұрын
Kese bhai muje bi btao
@Anukratmishra
@Anukratmishra Жыл бұрын
Pydroid
@editzwdaz
@editzwdaz Жыл бұрын
how does it turn into a calculator?
@ShawarmaAnimeDubs
@ShawarmaAnimeDubs 5 ай бұрын
you have to input code into html and css to make an actual calculator, this is just a code version of it
@editzwdaz
@editzwdaz 5 ай бұрын
@@ShawarmaAnimeDubs tyy
@ilyesbouhali7610
@ilyesbouhali7610 Жыл бұрын
App name please
@Anukratmishra
@Anukratmishra Жыл бұрын
Pydroid
@sunarintaro-ej7gd
@sunarintaro-ej7gd 9 ай бұрын
Anyway song name?
@Mathlover-007
@Mathlover-007 9 ай бұрын
Old Town road :- Lil Nas X
@Anukratmishra
@Anukratmishra 9 ай бұрын
Old town road
@raghuveersingh5338
@raghuveersingh5338 Жыл бұрын
Coding is so hard😢😢😢
@divinecreation6
@divinecreation6 3 ай бұрын
This program is so easy to write
Python Program #30 - Make a Simple Calculator in Python
10:19
Programming For Beginners
Рет қаралды 21 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 53 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 63 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 11 МЛН
How to Build a Simple Calculator in Python - Step by Step 1
15:37
Kindson The Tech Pro
Рет қаралды 375 М.
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 874 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 559 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 453 М.
How I Would Learn Python FAST in 2024 (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 333 М.
AI Learns to Run Faster than Usain Bolt | World Record
10:22
cozmouz
Рет қаралды 859 М.
How to use ChatGPT to easily learn any skill you want
8:08
Bri Does AI
Рет қаралды 1,8 МЛН
Using AI to NEVER LOSE in KAHOOT
10:54
The Coding Sloth
Рет қаралды 869 М.
Simple GUI Calculator in Python
22:51
NeuralNine
Рет қаралды 271 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН