Тёмный

Exercise 1: Calculator using Python (Solution) | Python Tutorial - Day #8 

CodeWithHarry
Подписаться 7 млн
Просмотров 855 тыс.
50% 1

Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.
Access the Playlist: • Python for Beginners (...
Link to the Repl: replit.com/@co...
Join Replit the browser-based IDE used in this course - join.replit.co...
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr]: • Python Tutorial For Be...
Python Advance[3.5 Hr]: • Python Programming Cou...
Python[1 Hr]: • Learn Python In Hindi ...
Python[2 Hr]: • Python Tutorial In Hin...
Python[15 Min]: • 15 Minute Python Tutor...
JavaScript[1 Hr]: • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr]: • Learn Php In One Video...
php[2.3 Hr]: • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min]: • HTML 5 Tutorial For Be...
CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr]: • How To Make a WordPres...
Angular[2 Hr]: • Angular Tutorial in Hindi
Java[2.3 Hr]: • Java tutorial in hindi 🔥
Web Scraping[1 Hr]: • Web Scraping Tutorial ...
MongoDB[2 Hr]: • MongoDb Tutorial For B...
Numpy[1 Hr]: • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr]: • Linux Tutorial For Beg...
JQuery[1.1 Hr]: • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
►Complete course [playlist]:
React: • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java: • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django: • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo: • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular): www.codewithha...
►Facebook: / codewithharry
►Instagram: / codewithharry
Twitter: / codewithharry
Comment "#HarryBhai" if you read this 😉😉

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,3 тыс.   
@CodeWithHarry
@CodeWithHarry Год назад
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
@tusharpari8467
@tusharpari8467 Год назад
Bhai 1 Request hai appse ki thoda sa Add Kam kar do
@preadeateronhunt1182
@preadeateronhunt1182 11 месяцев назад
hello harry bhai is code me koi bhi error nhi arha ha per 3rd input se age nhi ja rha ha . print("hello this is a pahadi calculater") A = float(input("pela number pa:")) B = float(input("apna dursa number pa:")) i = float(input("1 type kera ager jodna ha 2 type kera agerghatana ha 3 type kera ager gudna kerna ha 4 ager vibhajit kerna ha apna operater select kera:")) if i== 1: print = ("apka utter ha : ", A + B) elif i== 2: print = ("apka utter ha : ", A - B) elif i== 3: print = ("apka utter ha : ", A * B) elif i== 4: print = ("apka utter ha : ",A / B) else : print = ("error detected")
@thebruh5062
@thebruh5062 Месяц назад
Present
@oo-tes6642
@oo-tes6642 Год назад
Day 8 present, consistency ✌️(start se consistency laga ra hu tho present laga k flow break nai kar sakta 😅) ..and I am eagerly waiting for Day 9 and tough exercises in future 💪.. love you Harry Bhai ❤️
@aadeshlandge2493
@aadeshlandge2493 Год назад
Ll
@MuzammalKahloon
@MuzammalKahloon Год назад
print("Hello sir") a=int(input("Entre a first number")) b=int(input("Entre a second number")) print("The sum is=",a+b ) print("The Subtraction is=",a-b) print("The multiplication is=",a*b) print("The division is=",a/b) print("The mode is =", a%b)
@ashir...897
@ashir...897 Год назад
You can use the if and elif to show only the result of one by making an operator variable which takes operators as input and then use the if and elif functions to show only the result that the client is asking for not all at once
@Gohan_Playz_
@Gohan_Playz_ 7 месяцев назад
bro but he didnt teach that yet@@ashir...897
@mampilahiri3441
@mampilahiri3441 4 месяца назад
def Calculator(choice,a,b): if choice==1: print("the sum is :") return a+b if choice==2: print("the difference is :") return a-b if choice==3: print("the multiplication is :") return a*b if choice==4: print("the division is :") return a/b if choice==5: print("the modulo is :") return a%b else: return "wrong choice" choice=int(input("Enter the user's choice : ")) a=int(input("enter the 1st number :")) b=int(input("enter the 2nd number :")) res=Calculator(choice,a,b) print(res) This code is better than urs
@riteshsharma6790
@riteshsharma6790 Месяц назад
@@mampilahiri3441 he hasn't taught us if,else conditions yet
@mampilahiri3441
@mampilahiri3441 Месяц назад
@@riteshsharma6790 oh sorry , 😞 😔 😟
@utkarshpandey491
@utkarshpandey491 Год назад
Harry Bhaiya thank you for all ur free courses and I am getting very much help learning new skills from you and again thank you bhaiya for making us uprade in coding skills 😇
@Sike1111
@Sike1111 Год назад
Thnx bro
@raqibkhan482
@raqibkhan482 Год назад
OK vrz I
@mrayaz4453
@mrayaz4453 Год назад
The best teacher on RU-vid ❤️
@dreenaxgamerz732
@dreenaxgamerz732 3 месяца назад
no he is gretest techer
@shivanidhyani07
@shivanidhyani07 Год назад
a=int(input("Enter the value of a = ")) b=int(input("Enter the value of a = ")) print("a+b =", a+b) print("a-b =", a-b) print("a*b =", a*b) print("a/b =", a/b) print("a Percentile b", a%b)
@AnandSinghKushwaha-r9k
@AnandSinghKushwaha-r9k 7 месяцев назад
❤❤
@jennifergaming8923
@jennifergaming8923 5 месяцев назад
😂😂😂
@owaisnadeem2751
@owaisnadeem2751 Год назад
I'm Present Sir . 05th December 2022 Monday 04:40 pm PST Respect and love for you Harry bhai from Pakistan . You're a great and sincere teacher . May Allah Pak bless you Sir Haris Ali Khan Sahab
@theanonymous92
@theanonymous92 Год назад
@Good Boi same here
@LEGENDSAHILL
@LEGENDSAHILL Год назад
@goodboi5405 me from India
@israrkasi08081
@israrkasi08081 Год назад
i am also from Pakistan
@prof.coffee5326
@prof.coffee5326 Год назад
@goodboi5405 I am in pak
@AI.11
@AI.11 Год назад
@goodboi5405 main b 🥰
@ayaanahmad7944
@ayaanahmad7944 4 дня назад
a=int(input("Type the first number")) b=int(input("Type the second number")) print("the sum of the two numbers is : " , a+b) print("the difference of two numbers is : " , a-b) print("the product of two numbers is " , a*b) print("the quotient of two numbers is " , a/b)
@govind9060
@govind9060 Год назад
Well for those who are just starting def add (x,y): return x+y def subtract (x,y): return x-y and so on it is much easier to do it like this and it runs faster
@Amtk22
@Amtk22 Год назад
Here are some Repl based shortcuts Run repl. ctrl + enter. Open shell. ctrl + shift + s. open preferences. ctrl + , Open version control sidebar. ctrl + shift + g. open debugger. ctrl + shift + d. toggle command bar. ctrl + . Open multiplayer mode. ctrl + shift + m. Open packages sidebar. ctrl + shift + L.
@uditthakur990
@uditthakur990 Год назад
Going to be honest here, I brainstormed till headache as to how can i make a code in which i give an option to input a number to the user, but with the 7 videos of knowledge how could i have done that 😅 So thank you harry bhaiya for your morale support in each and every video,❤
@SmartSquad-wg9tn
@SmartSquad-wg9tn 11 месяцев назад
i too thought we were supposed to make an actual Calculator
@mandalorian445
@mandalorian445 8 месяцев назад
Exactly
@amulprajapati5290
@amulprajapati5290 8 месяцев назад
same bro brainstormed so much and felt sad for not knowing how to do that floating thing, its completely fine right if we just use the numbers he gave in previous one and create a normal "so called" calculator right ?, we'll be knowing all this in upcoming videos right ?? @@mandalorian445
@aakashthosre9921
@aakashthosre9921 13 дней назад
bro please tell me about the calculator i cant understand
@anshulkahane1319
@anshulkahane1319 8 месяцев назад
print('Exercise') a = int(input("Enter a number")) b = int(input('Enter a number')) print('Which operation do you perform, If you want to perform print 1 for addition , 2 for subtraction 3 for multiplication 4 for division and 5 for floor division 6 for exponential form 7 for the remainder . While looking the answers remember that all things consider a first ') d= int(input('Enter any of the above numbers ')) if d==1: print("The sum of the number is ",a+b) elif d==2: print("The subtractation of the numbers is ",a-b) elif d==3: print("The product of the numbers is ",a*b) elif d==4: print("The division quotient of the number is",a/b) elif d==5: print("The floor division of the number is ",a//b) elif d==6: print("The exponential form of the number is ",a**b) elif d==7: print("The remainder of the numbers is ",a%b) elif d==0: print("The option does not exist") elif d>7: print('It seems that you have chosed incorrect option') print("Thank you for using my calculator")
@unknownbhai123
@unknownbhai123 Год назад
a = int(input("entre your 1 no ")) b = int(input("entre your 2 no ")) print ("addition of a and b") print(a + b) print ("subtraction of a and b") print (a - b) print ("multiplication of a and b") print (a*b) print("division of a and b") print (a/b) print ("flot division of a and b") print (a//b) print("modulo of a and b") print (a%b) print ("thank you for this 100 days course of python")
@do_It_Together282
@do_It_Together282 Год назад
shabashh...!!!!!
@zizouking10
@zizouking10 4 месяца назад
Excellent!! 👍🏻 But how do you know this, cuz in this course he has not taught this yet ?! Where did you learn this syntax?
@attacker_0
@attacker_0 7 месяцев назад
a= int(input("enter a number first")) b= int(input("enter a number second")) C =a+b Print(c)
@juanidahmed5367
@juanidahmed5367 Год назад
I felt a bit nervous as I hadn't complete the 1st task given by you but I will continuing with your educational videos. I'm working with an NGO and in free time watched your videos to learn something new. Thanks a lot bro.
@Dharmaik_Sanatani
@Dharmaik_Sanatani Год назад
Which ngo ?? Isis 🤣🤣
@madtogedamaru663
@madtogedamaru663 11 месяцев назад
@@Dharmaik_Sanatani bruhhh what did he do to you?
@madtogedamaru663
@madtogedamaru663 11 месяцев назад
@@Dharmaik_Sanatani does your god teach you to abuse other people based on their relegion??
@munnumkhalid
@munnumkhalid 10 месяцев назад
@@Dharmaik_Sanatani close 2nd RSS
@Dharmaik_Sanatani
@Dharmaik_Sanatani 10 месяцев назад
@@munnumkhalid bro , wait for it I am making the 3rd R.S.S AND 12TH B.J.P. 🤣🤣 any problem... Can you just focus on learning 🤔 ....
@Zen_Phantom
@Zen_Phantom Год назад
I did it without using input a=value b=value print ("Addition of two values is",a+b) print("Subtraction of two values is",a-b) print("Product of two values is",a*b ) print("Quotient of two values is",a/b) print("Remainder of two values is",a%b) print("Exponent of two values is",a**b)
@AyushDwivedi-jj5zh
@AyushDwivedi-jj5zh 2 месяца назад
value1=2 value2=3 a=value1 b=value2 print ("Addition of two values is",a+b) print("Subtraction of two values is",a-b) print("Product of two values is",a*b ) print("Quotient of two values is",a/b) print("Remainder of two values is",a%b) print("Exponent of two values is",a**b) # now it will work.....
@Zen_Phantom
@Zen_Phantom 2 месяца назад
@@AyushDwivedi-jj5zh you're Just a Lil bit late
@AyushDwivedi-jj5zh
@AyushDwivedi-jj5zh 2 месяца назад
@@Zen_Phantom 😂😂
@eaglecoderz
@eaglecoderz Год назад
But thnxs alot for this series because of this i am now consistent on my coding even without having a pc. I go to library bcoz they have computers for everyone use or use my smart tv connected with wireless keyboard and mouse for using replit and do coding. Hope to finish 100 days and be with you always.
@socialbuzzer0305
@socialbuzzer0305 3 месяца назад
replit is available in mobile .
@RaunakBisht-p6v
@RaunakBisht-p6v 2 месяца назад
Exercise Done 👍 Jitna Sikhaya Hai Utna Use Karke Because I had just Started Programming
@MrRajpoot138
@MrRajpoot138 2 месяца назад
bro ya jo replet k sath day 1 ,day 2 tasks a rhy hn ya mary show ni ho rhy kindly bta dyn is ka
@Kuch_Bhi-lets_explore_it
@Kuch_Bhi-lets_explore_it Год назад
3:30 Bhai ek hi dil hai kitti baar jeetoge , Love You harry Bhai ❤ Greatest teachers of all time ❤
@prof.coffee5326
@prof.coffee5326 Год назад
print("This is a calcuator.") a = int(input("Enter first num")) c = str(input("+ - * /")) b = int(input("Enter second num")) if c == "+": print(a+b) elif c == "-": print(a-b) elif c == "/": print(a/b) elif c == "*": print(a*b)
@ff_hr
@ff_hr Год назад
🥶
@ayaankhatib3509
@ayaankhatib3509 Год назад
I also created my calculator the same way Others in comment are over writing the whole code while it is damn easy!!
@Lilhomietiger
@Lilhomietiger Год назад
@@ayaankhatib3509 bro i am very confused , how can i solve this exercise or make a calculator?
@Motivationvideo207
@Motivationvideo207 4 месяца назад
thank u bro
@user-ge4uh5ty5y
@user-ge4uh5ty5y 2 месяца назад
After scrolling so many comments I have found a well solution ❤
@kumarAjitesh
@kumarAjitesh Год назад
Following are the Time stamp at which i learnt something new 3:16 4:03
@suchitathakur5913
@suchitathakur5913 5 месяцев назад
Bhaiya mere pass PC nahi hai to maine apna program mobile mai likh ke run kiya hai.. Thank you bhaiya aap bohot achhha padhate hai. Aur isse pehle maine koi program nahi likha tha apni life mai khud se but aaj maine pehla program likha other than hello world aur mughe bohot khushi bohot khushi bohot khusii ho rahi hai, thank you bhaiya print("****Addition of Two Numbers****") a =int(input("Enter the number 1:")) b =int(input("Enter the number 2:")) add = a+b print("Addition of numbers are" ,add) print("****Substraction of Two Numbers****") c =int(input("Enter the number 1:")) d= int(input("Enter the number 2:")) sub = c-d print("Substraction of numbers are" ,sub) print("****Multiplication of Two Numbers****") e =int(input("Enter the number 1:")) f =int(input("Enter the number 2:")) mul =e-f print("Multiplication of numbers are" ,mul) print("*****Division of Two Numbers****") g =int(input("Enter the number 1:")) h =int(input("Enter the number 2:")) div =g/h print("Division of Numbers are" ,div)
@miz_mizpah9471
@miz_mizpah9471 3 месяца назад
You didn't tell us how to create calculator
@chillo_829
@chillo_829 2 месяца назад
yes 😂 jo study kr rha hai is field me usko to samaj ayega kese creat krna hai but me to pharmacy kiya hua banda hoon kuch palle nai pada kese creat krna hai woh😂
@hamidulgamerzyz
@hamidulgamerzyz 2 месяца назад
@@chillo_829 me to arts ka banda hu vo bhi 11th ka how to make it very confused
@AfreenAnsari-9876
@AfreenAnsari-9876 Месяц назад
Yeah bro I'm science student in 11th this is my first programming language I understand everything but I didn't know how to apply it and where do I can apply it.🥲
@muhammadmusa3224
@muhammadmusa3224 Месяц назад
@@AfreenAnsari-9876 It has scope in engineering domain. Both C and python languages are required to excel in that domain.
@toge.inumaki246
@toge.inumaki246 11 месяцев назад
a=float(input("Entre first number = ")) b=float(input("Entre second number = ")) print("The sum is=",a+b ) print("The Subtraction is=",a-b) print("The multiplication is=",a*b) print("The division is=",a/b) print("The mode is =", a%b)
@Jaf-ss1el
@Jaf-ss1el Год назад
Thanks, Harry. I am not able to create the calculator but learning from you. will update on the 100th day
@mujtabahussin6369
@mujtabahussin6369 Год назад
# I have Made this as a new try: print("1.Table 2.Multiplication 3.Subtraction 4.Divide 5.Addition 6.Square 7.Cube") q = input("What do you want?. Type a value of it: ") if q == '1': tablenum = int(input("which table you want?: ")) table1 = int(input("x x y = x: type your y: ")) print(" ") for table1 in range(table1 + 1): print(f"{tablenum} x {table1} = ", table1 * tablenum) elif q == '2': j = input("decimal or round - d or r: ") if j == 'r': g = int(input("Write your 1st number: ")) h = int(input("Write your 2nd number: ")) elif j == 'd': g = float(input("Write your 1st number: ")) h = float(input("Write your 2nd number: ")) print((f"{g} x {h} = ",g*h)) else: print("sorry!!") elif q == '3': sub1 = int(input("Type your first number: ")) sub2 = int(input("Type your second number: ")) print(f"{sub1} - {sub2} =", sub1-sub2) elif q == '4': div1 = int(input("Type your first number: ")) div2 = int(input("Type your second number: ")) divq1 = input("Do you want it in round - y or n: ") if divq1 == 'y': round_a = round(div1/div2) print(f"{div1} / {div2} =", round_a) elif divq1 == 'n': print(f"{div1} / {div2} =", div1/div2) else: print("sorry!!") elif q == '5': add1 = int(input("Type your first number: ")) add2 = int(input("Type your second number: ")) print(f"{add1} + {add2} =", add1+add2) elif q == '6': sq = int(input("Type number you want to have his square: ")) print(f"Square of {sq} is:", sq*sq) elif q == '7': cb = int(input("Type number you want to have his cube: ")) print(f"Square of {cb} is:", cb*cb*cb) else: print("Sorry!!") except: print("Sorry!!")
@ABDULMANAN-d1z
@ABDULMANAN-d1z 6 месяцев назад
same with me
@dubbedanbis3135
@dubbedanbis3135 9 месяцев назад
well, I did it quite different. I did it as a = 15 b = 12 c = a + b d = a - b e = a * b f = a / b g = a % b h = a ** b i = a // b print("The addition of", a,"+",b,"is", c)
@GoluRajput-h1u
@GoluRajput-h1u 7 месяцев назад
Bro how is this a calcator?? Cause you are assigning the values by your own!
@dubbedanbis3135
@dubbedanbis3135 7 месяцев назад
@@GoluRajput-h1u but he didnt teached input yet, he meant it as idle based not in console based so this is the right one, those were either gpt scripted or by the people who've learned python before too
@tukarampatwari5500
@tukarampatwari5500 Год назад
print("following are all opration of calculator:") a=input("enter a first number =") b=input("enter a second number=") c=float(a)+float(b); print("the sum of {0} and {1} is {2}".format(a,b,c)) d=float(a)-float(b) print("the sub of {0} and {1} is {2}".format(a,b,d)) e=float(a)*float(b) print("the sub of {0} and {1} is {2}".format(a,b,e)) f=float(a)/float(b) print("the sub of {0} and {1} is {2}".format(a,b,f)) g=float(a)%float(b) print("the sub of {0} and {1} is {2}".format(a,b,g))
@harshwardhansingh9915
@harshwardhansingh9915 Год назад
format is stupid, use f strings
@BryanJohnson1478
@BryanJohnson1478 Год назад
the best teacher on youtube. I just made calculator in less than 10 mins
@HIGHHLIGHTSTV
@HIGHHLIGHTSTV 3 месяца назад
bro moja samaj to sara arha ha lakin calculator nai ma rha ha samjao plz
@BryanJohnson1478
@BryanJohnson1478 3 месяца назад
​@@HIGHHLIGHTSTV kaise smjayun ?
@nirajdhungel1621
@nirajdhungel1621 15 дней назад
num1= input("Enter the 1st number:") num2= input("Enter the 2nd number:") num1=int(num1) num2=int(num2) print("The addition of the numbers=",num1+num2) print("The subtraction of the numbers=",num1-num2) print("The division of the numbers=",num1%num2) print("The multiplication of the numbers=",num1*num2) print("The mode of the numbers=",num1/num2) print("Thank you for choosing this calculator!!")
@cubing6550
@cubing6550 Год назад
L1 = ["addition", "subtraction", "multiplication", "division", "modular division", "integer division", "exponentiation"] a = int(input("Enter first number ")) b = int(input("Enter second number ")) print("The options are ",L1) c = input("What operation do you want to do ") while c not in L1: print("The operation is not in List") c = input("So, Enter the name of operation. ") c = c.lower() def add(x, y): z = x + y return z def subtract(x, y): z = x - y return z def divide(x, y): z = x / y return z def multiply(x, y): z = x * y return z def modular(x, y): z = x % y return z def integer(x, y): z = x // y return z def exponentiation(x, y): z = x ** y return z if c == "addition" : result = add(a, b) elif c == "subtraction" : result = subtract(a, b) elif c == "multiplication" : result = multiply(a, b) elif c == "division" : result = divide(a, b) elif c == "modular division": result = modular(a, b) elif c == "integer division": result = integer(a, b) elif c == "exponentiation": result = exponentiation(a, b) print (result)
@NoNameforChannel_
@NoNameforChannel_ Год назад
result is not defined...
@Butcher772
@Butcher772 Год назад
print("welcome to the calculator select number according to the operation ") print("1:-Sum 2:-Substact 3:-multiply 4:-divide") userpass = int(input()) print(userpass) if (userpass < 5) : print("enter your first number") a=int(input()) print("enter your second number") b=int(input()) match userpass: case 1: print(a + b); case 2: print(a - b); case 3: print(a * b); case 4: print(a / b); case other: print("select valid number") else: print("select out 4 number pleases")
@NumShu86
@NumShu86 Год назад
Best teacher ever ... Thank you Herry Bhai
@santhk1437
@santhk1437 18 дней назад
print("""It's is a calculater for all basic mathamatics tools like :- Addition , substraction , Division , multiplication and Greatest Integer of division of any Number""") A = int(input("Enter your first Digit = ")) B = int(input("Enter Your second Digit = ")) print("Addition is = " , (A+B) ) print("Substraction is", (A-B)) print("multiplication is " , (A*B)) print("division is " , (A/B)) print("Greatest Integer is", (A//B))
@igf8235
@igf8235 Год назад
Bhai thoda basic to bata hi dete ek program ke example se😢
@Shravan_hukmaram_suthar
@Shravan_hukmaram_suthar 17 дней назад
num1 = float(input('Enter a first number here :')) num2 = float(input('Enter a second number here:')) print("1.Addition ") print("2.Subtraction ") print("3.Multiplication ") print("4.Division ") choice = int(input("Enter your choice")) if choice == 1: print(num1 + num2) elif choice == 2: print(num1 - num2) elif choice == 3: print(num1 * num2) elif choice == 4: print(num1 / num2) else: print("Invalid choice")
@syedagirl8144
@syedagirl8144 11 месяцев назад
Thanks alot Harry sir. So many people in Pakistan praise the way you teach so nicely. and your way of explanation is great. It's great that you are teaching things from scratch, I was totally new in python
@elon7385
@elon7385 9 месяцев назад
what is its use if your mindset is 1500 old and gross
@saransh9373
@saransh9373 9 месяцев назад
create a new language"pakthon"
@syedagirl8144
@syedagirl8144 6 месяцев назад
@@saransh9373 this represents ke jahil log bhare he india me, jinko seedhi bat me bhonkna soojta he. jahil country ke jahil log
@syedagirl8144
@syedagirl8144 6 месяцев назад
@@elon7385 oh kuttay, your religion is more old then 1500, wese bhi parhne toh muslim se aai ho, harry is muslim, india me agay muslims hein, chahy woh bollywood ho ya yeh youtube
@syedagirl8144
@syedagirl8144 6 месяцев назад
@@saransh9373 pata nhi kaha se aa jate he ghatia log jinko simple bat me bhi larai karni hoti he, maa ne tarbiyat itni ghatia ki he.
@altawfiqdip2961
@altawfiqdip2961 7 месяцев назад
num1=int(input("please enter the frist nunber=")) num2=int(input("please enter the scond number=")) result=num1+num2 print("The sumition is=",result) result=num1-num2 print("The abtruction is=",result) result=num1*num2 print("The multiplecation is=",result) result=num1/num2 print("The divitiion is=",result) result=num1%num2 print("The modulas is=",result) result=num1//num2 print("The floor is=",result)
@Kuch_Bhi-lets_explore_it
@Kuch_Bhi-lets_explore_it Год назад
Attendence Day 8 #100dayscodingchallenge #python #codeWithHarry❤Enjoying the course Thanks for teaching us from the heart with humbleness ,values & great efforts bhai❤ time : - 23:59
@hinasehrish7290
@hinasehrish7290 Год назад
a=1 B=1 Print(a+b) Print(a-b) Print(a*b) Print(a/b) Can we made like that?
@sidzohra4055
@sidzohra4055 Год назад
One of the best teacher on RU-vid ❤
@WarriorAnand
@WarriorAnand 4 месяца назад
A = VALUE B = VALUE print ("addition of two value is ", A+B) print ("SUBTRACTION of two value is" , A-B) print ("MULTIPLICATION of two value is" ,A*B) print ("DIVISION of two value is" , A/B) print ("EXPONENT of two value is" , A**B)
@EntertainmentHUB099
@EntertainmentHUB099 Год назад
Thanks Alot Guys For Your Love And Support Guys Love You All 🥺💛😘✨
@armylover-mo6cf
@armylover-mo6cf Год назад
class FirstClass{ public static void main(String[] args){ System.out.println("What Is Your Name"); Scanner sc = new Scanner(System.in); String name sc.next(); System.out.println("Hell" + name + "great job"); } } भाई मेरा ये कोड run नहीं कर रहा please help करो क्या problem हैं इसमें
@ig_arunvasu
@ig_arunvasu Год назад
@@armylover-mo6cf String name = sc.next()
@AmitSharma-oh5uw
@AmitSharma-oh5uw Год назад
This is my favourite day. isme apne jo sbhi ko shout out dete time ye bola hai ki disqualify. and chlo not disqualify. i like it. ap jo majak wali bate bolte hai wo mujhe bhut acha lgta hai. thank you bhaiya, 😘😘😘😘😘😘
@user-ul3ms1og2f
@user-ul3ms1og2f 5 месяцев назад
but they should be disqualified, imagine someone who is a beginner is seeing all this, he would get scared, and if someone already knows everything then why making post for calculator ? they will use math module they use input which make no sense for now
@Nothing-Zero
@Nothing-Zero 3 месяца назад
2024 attendance ---------->
@karumagarofficialsvlogs5745
@karumagarofficialsvlogs5745 29 минут назад
c=45 d=2 print("the value of",c,"+",2,"is:", c+d) print("the value of",c,"+",2,"is:", c*d) print("the value of",c,"+",2,"is:", c%d)
@nikhilkrishan2827
@nikhilkrishan2827 Год назад
Fun Fact: Half of the students had already learnt python from your olden videos. Even I Too!!
@Pessler007
@Pessler007 Год назад
Fr, we are just here to listen harry bhai♥️
@mujtabahussin6369
@mujtabahussin6369 Год назад
# I have Made this as a new try: print("1.Table 2.Multiplication 3.Subtraction 4.Divide 5.Addition 6.Square 7.Cube") q = input("What do you want?. Type a value of it: ") if q == '1': tablenum = int(input("which table you want?: ")) table1 = int(input("x x y = x: type your y: ")) print(" ") for table1 in range(table1 + 1): print(f"{tablenum} x {table1} = ", table1 * tablenum) elif q == '2': j = input("decimal or round - d or r: ") if j == 'r': g = int(input("Write your 1st number: ")) h = int(input("Write your 2nd number: ")) elif j == 'd': g = float(input("Write your 1st number: ")) h = float(input("Write your 2nd number: ")) print((f"{g} x {h} = ",g*h)) else: print("sorry!!") elif q == '3': sub1 = int(input("Type your first number: ")) sub2 = int(input("Type your second number: ")) print(f"{sub1} - {sub2} =", sub1-sub2) elif q == '4': div1 = int(input("Type your first number: ")) div2 = int(input("Type your second number: ")) divq1 = input("Do you want it in round - y or n: ") if divq1 == 'y': round_a = round(div1/div2) print(f"{div1} / {div2} =", round_a) elif divq1 == 'n': print(f"{div1} / {div2} =", div1/div2) else: print("sorry!!") elif q == '5': add1 = int(input("Type your first number: ")) add2 = int(input("Type your second number: ")) print(f"{add1} + {add2} =", add1+add2) elif q == '6': sq = int(input("Type number you want to have his square: ")) print(f"Square of {sq} is:", sq*sq) elif q == '7': cb = int(input("Type number you want to have his cube: ")) print(f"Square of {cb} is:", cb*cb*cb) else: print("Sorry!!") except: print("Sorry!!")
@user-vl7ch2cz7i
@user-vl7ch2cz7i Год назад
@@Pessler007 job ni lgi na teri
@Pessler007
@Pessler007 Год назад
@@user-vl7ch2cz7i han bhai tere mummy ko chodne me busy the😔
@PalAnghan105
@PalAnghan105 6 месяцев назад
Harry Bhai Deko ho gaya code :- n = int(input("Enter First number :")) k = int(input("Enter second numbr :")) result1 = n+k print("Adition",result1) result2 = n-k print("Subtraction",result2) result3 = n*k print("Multi",result3) result4 = n**k print("Exppnetial",result4) result5 = n/k print("Divison",result5) result6 = n//k print("Floor Divison",result6) result7 = n%k print("Modulus",result7)
@anukoolchauhan8085
@anukoolchauhan8085 Год назад
Bhaiya day 9 ki video kbb ayegi
@anukoolchauhan8085
@anukoolchauhan8085 Год назад
Abhi tk nhi ayi
@anukoolchauhan8085
@anukoolchauhan8085 Год назад
😭😭
@kajalsingh7655
@kajalsingh7655 3 месяца назад
a = int(input("Entre first no : ")) b = int(input("Entre second no : ")) print("operations on two operands are ") print("addition",a+b) print("subtraction",a-b) print("multiplication",a*b) print("divison",a/b) print("floor division ",a//b) print("reminder",a%b)
@AK_Edits369
@AK_Edits369 7 месяцев назад
#my calculator thank you sir for teaching x = input("enter equation here =") Result = eval(x) try: print("result =",Result) print("Thanks for using our calculator") except ValueError: print("Enter a valid chracter")
@soumitrasahoo922
@soumitrasahoo922 Год назад
n=15 m=7 ans1= n+m print ("addition of",n, "and" , m, "is" , ans1 ) ans2=n-m print ("subtraction of",n, "and" , m, "is" , ans2 ) ans3= n*m print ("multiplication of",n, "and" , m, "is" , ans3 ) ans4= n/m print ("division of",n, "and" , m, "is" , ans4 ) ans5= n%m print("modulus of",n,"and",m, "is" ,ans5 ) ans6=n//m print ("floor division of",n, "and" , m, "is" , ans6 )
@muhammadashir5140
@muhammadashir5140 3 месяца назад
a=4 b=6 print("Addition of 'a' and 'b' is: ",a+b) print("Subtraction of 'a' and 'b' is: ",a-b) print("Multiplication of 'a' and 'b' is: ",a*b) print("Division of 'a' and 'b' is: ",a/b) print("Modulus(Remainder) of 'a' and 'b' is: ",a%b) print("Exponentiation of 'a' and 'b' is: ",a**b) print("Free division of 'a' and 'b' is: ",a//b) A simple calculator
@aryandeepsinha
@aryandeepsinha 5 месяцев назад
This is the simple calculator which performs addition , subtraction, division and multiplication for two numbers , without performing and showing all the operations in one go by using if else condition. you have to just input first number, second number and the operation vwhich you want to use, and then you'll get the result num1= float(input("Enter first number:")) num2= float(input("Enter second number:")) operator= input("Enter operator(+,-,/,*)") if operator == '+': result = num1+num2 print("result:",result) if operator == '-': result = num1-num2 print("result:",result) if operator == '*': result = num1*num2 print("result:",result) if operator == '/': result = num1/num2 print("result:",result) else: print("Invalid operation") hope you'll find it useful
@gamerehtisham
@gamerehtisham 3 месяца назад
#asking for nummbers a=input("type your first number ") b=input("type your seacond number ") #asking what user wanna do c=input("What you want to do your options are: + - * / chose the one option ") #Checking what the user chose if c=="+": print(int(a)+int(b)) elif c=="-": print(int(a)-int(b)) elif c=="*": print(int(a)*int(b)) elif c=="/": print(int(a)/int(b))
@Shortsfortheday21
@Shortsfortheday21 4 месяца назад
a=45 b=35 ans1= a+b print('addition of two numbers is '+ str(ans1)) ans2=a-b print('subtraction of two numbers is '+ str(ans2)) ans3=a*b print('multiplication of two numbers is '+ str(ans3)) ans4=a/b print('division of two numbers is '+ str(ans4))
@Mughal-ii4dq
@Mughal-ii4dq Год назад
num1 = int(input("Enter first number: ")) Operator=input("Enter any operator: + , - , * , / , // , % : ") num2 = int(input("Enter second number: ")) if Operator =='+' : print("Addition of both numbers is :: ",num1+num2) elif Operator =='-' : print("Subtraction of both numbers is :: ",num1-num2) elif Operator =='*' : print("multiplication of both numbers is :: ",num1*num2) elif Operator =='/': print("Division of both numbers is :: ",num1/num2) elif Operator =='%': print("Remainder is :: ",num1%num2) elif Operator =='//' : print(" precise-Devision of both numbers is :: ",num1+num2) else : print("Invalid Operator")
@andropsfbyy6492
@andropsfbyy6492 Год назад
😅 import time # adding numbers print("Sum\:") a = int(input("Enter first no: ")) b = int(input("Second no: ")) print(a + b) time.sleep(3) # subtract print("Sub\:") c = int(input("1: ")) d = int(input("2: ")) print(c - d) time.sleep(3) # multiplt print("Of\:") e = int(input("1: ")) f = int(input("2: ")) print(e * f) time.sleep(3) # Divide print("By\: ") g = int(input("1: ")) h = int(input("2: ")) print(g/h)
@unkown4176
@unkown4176 2 месяца назад
print ("Calculator") a = int(input("Enter the first number: ")) b = int(input("Enter the second number: ")) print("To add type 1") print("To subtract type 2") print("To multiply type 3") print("To divide type 4") c = int(input("Enter the number: ")) if c ==1: print("The sum of the numbers is",a+b) elif c==2: print("The subtraction of the numbers is",a-b) elif c==3: print("The multiplication of the numbers is",a*b) if b==0 and c == 4: print ("not defined") elif c==4: print("The division of the numbers is",a/b) else: print("Please check your input value")
@MotiveElevation73
@MotiveElevation73 3 месяца назад
# Prompting user to input the first number a = int(input("Enter the value of the first number: ")) # Prompting user to input the second number b = int(input("Enter the value of the second number: ")) # Prompting user to input the operator d = input("Enter the operator for calculation (+, -, *, /): ") # Performing the operation based on the operator entered if d == "+": print(f"The addition of {a} and {b} is {a + b}") elif d == "-": print(f"The subtraction of {a} and {b} is {a - b}") elif d == "*": print(f"The multiplication of {a} and {b} is {a * b}") elif d == "/": # Adding a check to avoid division by zero if b != 0: print(f"The division of {a} by {b} is {a / b}") else: print("Error: Division by zero is not allowed.") else: print("You have entered a wrong operator. Please enter a correct operator.") print("You can only enter one of these operators: +, -, *, /")
@sonaliwadkar2646
@sonaliwadkar2646 5 месяцев назад
a = 56 b = 45 print("The number of sum", a+b) print("The number of subtraction", a - b) print("The number of multiplication", a * b) print("The number of division", a / b) print("The number of floor division", a // b) print("The number of exponential", a ** b)
@PushpenderLE
@PushpenderLE 6 месяцев назад
num1 = float(input("Enter the 1st value: ")) num2 = float(input("Enter the 2nd value: ")) print("""choice operation which you want additon: 1 substraction: 2 division: 3 multiplilcation: 4 """) operation = int(input("enter which type of operation you wnat: ")) if operation == 1: print("sum of two numbers: " , num1 + num2) if operation == 2: print("differnce of two numbers: " , num1 - num2) if operation == 3: print("division of two numbers: " , num1 / num2) if operation == 4: print("multiplication of two numbers: " , num1 * num2)
@EndgameEliteChess
@EndgameEliteChess Месяц назад
a=int(input("Enter First number:")) b=int(input("Enter Second number:")) add=a+b sub=a-b mul=a*b div=a/b print("Addition of First and Second number is",add) print("subtraction from First number to Second number is", sub) print("product of first and second number is", mul) print("Division of First number by second number is", div)
@isaarrasoolofficial
@isaarrasoolofficial 8 месяцев назад
Hi all, little effort from my side: print(" BASIC CALCULATOR ") num1 = float(input("enter num1 = ")) num2 = float(input("enter num2 = ")) print(" 1. add 2. subtract 3. multiply 4. divide") operation = int(input("choose options from 1 to 4 = ")) if operation == 1: print(num1 + num2) elif operation == 2: print(num1 - num2) elif operation == 3: print(num1*num2) elif operation == 4: if num2 == 0: print("error") else: print(num1/num2) else: print("invalid input")
@jhl.654rr
@jhl.654rr 8 месяцев назад
Bhai ye kaisay likha ha
@isaarrasoolofficial
@isaarrasoolofficial 8 месяцев назад
@@jhl.654rr agr koi mistake hai code mehh tou kindly do correct me. Bakki I've used if - else statement to write the code
@jhl.654rr
@jhl.654rr 8 месяцев назад
@@isaarrasoolofficial bhai mn to ap sy pooch rha tha ye ksy likhna ha calculator bnany ky liyay 😂 Or ye else if wala to ab tak is video tal pdhaya b nhi h Haris bhai ny Ye code ksy likha ha apny plz bta do
@mampilahiri3441
@mampilahiri3441 4 месяца назад
def Calculator(choice,a,b): if choice==1: print("the sum is :") return a+b if choice==2: print("the difference is :") return a-b if choice==3: print("the multiplication is :") return a*b if choice==4: print("the division is :") return a/b if choice==5: print("the modulo is :") return a%b else: return "wrong choice" choice=int(input("Enter the user's choice : ")) a=int(input("enter the 1st number :")) b=int(input("enter the 2nd number :")) res=Calculator(choice,a,b) print(res)
@GlitchyGlobe
@GlitchyGlobe Год назад
15.12.22 ko 13:38 ko yeh video dekh rhi hu from Thane, Maharashtra. Thankyou so much Sir
@najeebullah3004
@najeebullah3004 Год назад
Hello, harry bhai first thanks you so much for such a good and helpful course. Harry bhai please when talking about the shortcut keys, show them on the screen side...
@SwayamPatel-g5i
@SwayamPatel-g5i 4 месяца назад
print("This is a calcuator.") a=int(input("Enter the first number")) b=int(input("Enter the second number")) c=str(input("Enter the operater,(+ - * /):")) if c=="+": print("the sum of the numbes is",a+b) elif c=="-": print("the difference between the numbers is ",a-b) elif c=="/": print("the quotient of the numbers is ,",a/b) elif c=="*": print("the product of the numbers is",a*b) else: print("invalid input")
@kavitabanerjee-x4k
@kavitabanerjee-x4k 7 месяцев назад
a = int(input("enter first number:")) b = int(input("enter second number:")) print("addition:" , a+b ) print("subtract" , a-b) print("multiply" , a*b) print("divide" , a/b)
@invinciblegamerff6349
@invinciblegamerff6349 7 месяцев назад
Num1=int(input("enter the number:")) Num2=int(input("enter the number:")) add=Num1+Num2 mul=Num1*Num2 div=Num1/Num2 sub=Num1-Num2 floor=Num1//Num2 exponention=Num1**Num2 print("Addition of number is",add) print("Subtraction of number is",sub) print("Multiplication of number is",mul) print("Division of number is",div) print("Floor division of number is",floor) print("Exponention of number is ",exponention)
@nehasinghjaswal
@nehasinghjaswal Год назад
Please provide a detailed video on "How to use Replit", I always search your name and then your video, it is tough. I am sure there is some shortcut to open your repel or add your repel in our library. Kindly provide a detailed video on this.
@atharvaandhale2465
@atharvaandhale2465 Год назад
Honest review about your videos harry, you should solve the excercise and should not directly jump on to the next concept. It creates a bit of confusion in the mind of those who have started python as their first coding language, or any other language I've seen you doing the same thing. It's great that many student are supporting you but you should give a thought to my review as well.
@GuruSaranSP
@GuruSaranSP 4 месяца назад
#variables a = 5 b = 10 c = 15 d = 20 e = 25 # operations add = a+b sub = c-b mul = c*d div = e/a exp = a**b floordiv = e//d modulus = e%a #output print("Addition of a and b : ", add) print("Subtraction of b and c: ", sub) print("Multiplication of c and d: ", mul) print("Division : of e and a", div) print("Exponentiation of a and b: ", exp) print("Floor Division : of e and d :", floordiv) print("Modulus : of e and a :", modulus)
@yashwanth5674
@yashwanth5674 6 месяцев назад
#calculator program using loops print("hello world") print("select an arithmetic operator:") print("1 for addition") print("2 for subtraction") print("3 for multiplication") print("4 for division") print("5 for floor division") print("6 for exponent") print("7 for modulas") choice=int(input("enter your choice:")) a=int(input("enter first number:")) b=int(input("enter second number:")) if choice == 1: print(a+b) elif choice == 2: print(a-b) elif choice == 3: print(a*b) elif choice == 4: print(a/b)47 elif choice == 5: print(a//b) elif choice == 6: print(a**b) elif choice == 7: print(a%b)
@Moviedekho819
@Moviedekho819 3 месяца назад
firstNumber = int(input("input your first number: ")) operatorN = input("input your operator: ") secondumber = int(input("input your second number: ")) if (operatorN == "+"): print(firstNumber + secondumber) elif(operatorN == "-"): print(firstNumber - secondumber) elif(operatorN == "*"): print(firstNumber * secondumber) elif(operatorN == "/"): print(firstNumber / secondumber)
@AshmitaJ-e6h
@AshmitaJ-e6h 6 месяцев назад
present sirji , i m a beginner, and i am so thankful to you for how you teach
@nandani-gpta
@nandani-gpta 2 месяца назад
I am here attending this playlist in 2024 and showing my consistency [ PRESENT SIR]
@Jimil_soni
@Jimil_soni Год назад
0:04 hame bhi aapka sikhaaneka Josh dekh kar kaafi accha lagra hai
@ShaheerKhan-y1i
@ShaheerKhan-y1i 5 дней назад
num1=input ("Enter first number:") num2=(input("Enter second number:")) print ("The sum of two number is :",int(num1)+int(num2) ) print ("The Differance of two number is :",int(num1)-int(num2) ) print ("The product of two number is :",int(num1)*int(num2) ) print ("The Division of two number is :",int(num1)/int(num2) ) print ("The floorDivision of two number is :",int(num1)//int(num2) ) print ("The module of two number is :",int(num1)%int(num2) )
@Geekgurlcode
@Geekgurlcode 9 месяцев назад
or like this x=int(input("Enter the value of a = ")) y=int(input("Enter the value of a = ")) print("x+y =", x+y) print("x-y =", x-y) print("x*y =", x*y) print("x/y =", x/y)
@user-sw7xh8lb7v
@user-sw7xh8lb7v 9 месяцев назад
num1=2 num2=3 print("sum is +", num1+num2) print("sum is -",num1-num2) print("sum is ×",num1*num2) print("sum is ÷ ",num1/num2)
@ZaraBatool-hw1jd
@ZaraBatool-hw1jd 3 месяца назад
def divid(z,e): return z//e def subtract(x, y): return x - y print("please one option chose karen:") print("1. divid") print("2. Subtract") choice = input("Apna choice enter karen (1/2): ") num1 = float(input("Pahla number enter karen: ")) num2 = float(input("Dusra number enter karen: ")) if choice == '1': print(num1, "//", num2, "=", divid(num1, num2)) elif choice == '2': print(num1, "-", num2, "=", subtract(num1, num2)) else: print("Galat input")
@gamerehtisham
@gamerehtisham 3 месяца назад
#asking for nummbers a=input("type your first number ") b=input("type your seacond number ") #asking what user wanna do c=input("What you want to do your options are: + - * / chose the one option ") #Checking what the user chose if c=="+": print(int(a)+int(b)) elif c=="-": print(int(a)-int(b)) elif c=="*": print(int(a)*int(b)) elif c=="/": print(int(a)/int(b))
@hnxpriyanshu
@hnxpriyanshu Год назад
print ("Calculator") a= input () b= input () print ("Total +" , int(a) + int(b)) print ("Total -" , int(a) - int(b)) print ("Total *" , int(a) * int(b)) print ("Total /" , int(a) / int(b))
@mujtabahussin6369
@mujtabahussin6369 Год назад
#I made this as new - please try it try: print("1.Table 2.Multiplication 3.Subtraction 4.Divide 5.Addition 6.Square 7.Cube") q = input("What do you want?. Type a value of it: ") if q == '1': tablenum = int(input("which table you want?: ")) table1 = int(input("x x y = x: type your y: ")) print(" ") for table1 in range(table1 + 1): print(f"{tablenum} x {table1} = ", table1 * tablenum) elif q == '2': j = input("decimal or round - d or r: ") if j == 'r': g = int(input("Write your 1st number: ")) h = int(input("Write your 2nd number: ")) elif j == 'd': g = float(input("Write your 1st number: ")) h = float(input("Write your 2nd number: ")) print((f"{g} x {h} = ",g*h)) else: print("sorry!!") elif q == '3': sub1 = int(input("Type your first number: ")) sub2 = int(input("Type your second number: ")) print(f"{sub1} - {sub2} =", sub1-sub2) elif q == '4': div1 = int(input("Type your first number: ")) div2 = int(input("Type your second number: ")) divq1 = input("Do you want it in round - y or n: ") if divq1 == 'y': round_a = round(div1/div2) print(f"{div1} / {div2} =", round_a) elif divq1 == 'n': print(f"{div1} / {div2} =", div1/div2) else: print("sorry!!") elif q == '5': add1 = int(input("Type your first number: ")) add2 = int(input("Type your second number: ")) print(f"{add1} + {add2} =", add1+add2) elif q == '6': sq = int(input("Type number you want to have his square: ")) print(f"Square of {sq} is:", sq*sq) elif q == '7': cb = int(input("Type number you want to have his cube: ")) print(f"Square of {cb} is:", cb*cb*cb) else: print("Sorry!!") except: print("Sorry!!") import time time.sleep(0.4) print(" T", end="") print("H", end="") time.sleep(0.3) print("A", end="") time.sleep(0.3) print("N", end="") time.sleep(0.3) print("K") time.sleep(0.3) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_", end="") time.sleep(0.1) print("_ ") time.sleep(0.3) print(" Y", end="") time.sleep(0.3) print("O", end="") time.sleep(0.3) print("U", end="")
@hnxpriyanshu
@hnxpriyanshu Год назад
@@mujtabahussin6369 system crash ho jayega itna print karoge
@mujtabahussin6369
@mujtabahussin6369 Год назад
@@hnxpriyanshu nhi bhai try to kijiye accha h
@hnxpriyanshu
@hnxpriyanshu Год назад
@@mujtabahussin6369 1 mahine baad dekhna kitna achha hai
@tushartuli4364
@tushartuli4364 Год назад
thankss harry bhai.Being a begginer its totally at my pace.
@thatcoolkid370
@thatcoolkid370 Год назад
Day #8 in 100 days of code. I am a bit late today due to exams but still maintaining consistency.
@czgamer1345
@czgamer1345 2 месяца назад
a = input("enter your number: ") c = input("Enter Operatot: ") b = input("enter your number: ") D=int(a) + int(b) E=int(a) / int(b) F=int(a) - int(b) G=int(a) * int(b) if c == "+": print(D) elif c == "-": print(F) elif c == "/": print(E) elif c == "*": print(G) else: print("invalid")
@Gamer-m9b3c
@Gamer-m9b3c 2 месяца назад
print("Hello Sir welcome to caluthon") mode =input("What function wouold you like to perform Addition Subtraction Multiplication Division") if mode =="Addition": a = int(input("Enter the first number")) b = int(input("Enter the second number")) print("The sum of a and b is:" ,a+b) elif mode == "Subtraction": a = int(input("Enter the first number")) b = int(input("Enter the second number")) print("The difference of a and b is:" ,a-b) elif mode == "Multiplication": a = int(input("Enter the first number")) b = int(input("Enter the second number")) print("The product of a and b is:" ,a*b) elif mode == "Division": a = int(input("Enter the first number")) b = int(input("Enter the second number")) print("The sum of a and b is:" ,a/b) else: print("Please enter a valid mode")
@Gamer-m9b3c
@Gamer-m9b3c 2 месяца назад
I know a lil bit bout python so that's why I used IF/ELSE
@MSaad381
@MSaad381 Год назад
Sir I Really Interested In Python Through Your Course
@Franco-kb3gj
@Franco-kb3gj Год назад
# HEY HAVE AN EYE ON THIS: a = int(input("ENTER FIRST NUMBER FOR ADDITION:")) b = int(input("ENTER SECOND NUMBER FOR ADDITION:")) c = int(input("ENTER FIRST NUMBER FOR SUBTRACTION:")) d = int(input("ENTER SECOND NUMBER FOR SUBTRACTION:")) e = int(input("ENTER FIRST NUMBER FOR MULTIPLICATION:")) f = int(input("ENTER SECOND NUMBER FOR MULTIPLICATION:")) g = int(input("ENTER FIRST NUMBER FOR DIVISION:")) h = int(input("ENTER SECOND NUMBER FOR DIVISION:")) print("The value of", a, " + ", b, "is:", a + b) print("The value of", a, " - ", b, "is:", c - d) print("The value of", a, " * ", b, "is:", e * f) print("The value of", a, " / ", b, "is:", g / h)
@ajgamingforyou
@ajgamingforyou Год назад
After 3 month and you are a python expert 🤗😇
@mairamahmood6600
@mairamahmood6600 Год назад
num1 = int(input('enter the ist num:')) num2 = int(input('enter the sec num:')) sign = input('enter the operation:') if (sign == "+"): print(num1+num2) elif (sign == "-"): print(num1-num2) elif (sign == "*"): print(num1*num2) else: print(num1/num2)
@aryyann05
@aryyann05 Год назад
while True krdo for repetition
@Inspire_Rise1808
@Inspire_Rise1808 Год назад
Machine Learning Mathematics ki bhi series bnao sir
@KBTheVideoEditor
@KBTheVideoEditor 4 месяца назад
first = int(input("Enter the first number: ")) second = int(input('Enter youre second number: ')) operator = input('Enter youre operator: ') operator = operator.lower() if operator == '+': print(first + second) elif operator == '-': print(first - second) elif operator == '*': print(first * second) elif operator == '/': print(first / second) else: print('invalid input')
@asadali.27232
@asadali.27232 Год назад
Harry Bhai DBMS or SQL par b aik detailed course la kar please. Love your all course from Pakistan 🇵🇰 My whole class follows tour tutorial even they don't follow there teacher.
@SocialStatusVideos-sl7qu
@SocialStatusVideos-sl7qu 10 месяцев назад
a = int(input("Enter Number")) b = int(input("Enter Number")) c = int(a+b) d = int(a-b) e = int(a*b) f = int(a/b) g = int(a // b) h = int(a%b) i = int(a**b) print(c) print(d) print(e) print(f) print(g) print(h) print(i)
@user-vr2mm1xb6i
@user-vr2mm1xb6i 9 месяцев назад
print("select an opration to perform: ") print("1. ADD") print("2. SUBTRACT") print("3. MULTIPLY") print("4. DIVIDE") operation = input() if operation == "1": num1 = input("Enter first number") num2 = input("Enter second number") print("The sum is " + str(int(num1) + int(num2))) elif operation == "2": num1 = input("Enter first number") num2 = input("Enter second number") print("The differece is " + str(int(num1) - int(num2))) elif operation == "3": num1 = input("Enter first number") num2 = input("Enter second number") print("The multiplication is is " + str(int(num1) * int(num2))) elif operation == "4": num1 = input("Enter first number") num2 = input("Enter second number") print("The product is " + str(int(num1) / int(num2))) else: print("Invalid entry")
@vinaypritwani
@vinaypritwani Год назад
a = int(input("enter your number here:\t")) b = int(input("enter you second number here:\t")) print("add the above numbers\t----------->", a+b) print(f"subtract the above number\t---> {a-b}") print(f"divide the above number\t----------> {a/b}") print(f"multiply th above numbers\t---> {a*b}")
@mohammadhasnat9065
@mohammadhasnat9065 Год назад
text = 'CodeWithHarry' print(f'{text}') print(f'{text:#20}') print(f'{text:-^20}')
@prashantdubey6932
@prashantdubey6932 Год назад
a=int(input("enter the 1st number:")) b=int(input("enter the 2nd number:")) print("the value of",a,"+",b,"is :",a+b) print("the value of",a,"-",b,"is :",a-b) print("the value of",a,"*",b,"is :",a*b) print("the value of",a,"/",b,"is :",a/b)
@TahaKhan-t6i
@TahaKhan-t6i 24 дня назад
# Simple Calculator in Python def add(x, y): return x + y def subtract(x, y): return x - y def multiply(x, y): return x * y def divide(x, y): if y == 0: return "Error! Division by zero." return x / y def main(): print("Select operation:") print("1. Add") print("2. Subtract") print("3. Multiply") print("4. Divide") choice = input("Enter choice (1/2/3/4): ") if choice in ['1', '2', '3', '4']: num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) if choice == '1': print(f"{num1} + {num2} = {add(num1, num2)}") elif choice == '2': print(f"{num1} - {num2} = {subtract(num1, num2)}") elif choice == '3': print(f"{num1} * {num2} = {multiply(num1, num2)}") elif choice == '4': print(f"{num1} / {num2} = {divide(num1, num2)}") else: print("Invalid input") if __name__ == "__main__": main()
@lalkumarpandit8776
@lalkumarpandit8776 Год назад
a = 10 b = 5 ans1 = a+b print("Addition of",a,"and",b,"is",ans1) ans1 = a-b print("subtraction of",a,"and",b,"is",ans1) ans1 = a*b print("multiplication of",a,"and",b,"is",ans1) ans1 = a/b print("division of",a,"and",b,"is",ans1) ans1 = a%b print("mudulus of",a,"and",b,"is",ans1) ans1 = a//b print("floor division of",a,"and",b,"is",ans1)
@gamingwithsane762
@gamingwithsane762 11 месяцев назад
Thankyou so much sir because of you the guy who didn't know what is python now has created a calculator in it😁
Далее
Typecasting in Python | Python Tutorial - Day #9
9:25
Просмотров 885 тыс.
Каха и жена (недопонимание)
00:37
Is Data Science Dying in 2024? || AI and Automation
11:44
Simple GUI Calculator in Python
22:51
Просмотров 269 тыс.
How I would learn Leetcode if I could start over
18:03
Просмотров 508 тыс.
Coding Interviews Be Like
5:31
Просмотров 6 млн
Каха и жена (недопонимание)
00:37