Тёмный

Project 1 - Build a Calculator from Scratch in Python | Python Tutorial in Hindi 

Rishabh Mishra
Подписаться 323 тыс.
Просмотров 3,8 тыс.
50% 1

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

 

10 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@videocollection1033
@videocollection1033 26 дней назад
thank you sir python apke wajha se samaj a raha hai.please upload more videos of python so fast complition of python series.
@RishabhMishraOfficial
@RishabhMishraOfficial 26 дней назад
Glad you liked ✅️
@Campus_trader01
@Campus_trader01 Месяц назад
Is se bahut easy way me maine code kiya tha.
@nishagorasia2416
@nishagorasia2416 23 дня назад
Rishabhji, please also add some python libraries Numpy, Ski kit learn, etc. Will you please add more complexity to intermediate and advanced level as well.. Thank you 🙏🏻 Add more assignment videos as well.
@RishabhMishraOfficial
@RishabhMishraOfficial 22 дня назад
Yes will do that after completing this service
@ranagamingyt6372
@ranagamingyt6372 Месяц назад
Thank u sir 🙏 .. For all your efforts ❤
@xtravengersgaming
@xtravengersgaming Месяц назад
Great video!!!
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Glad you liked it! ✅️
@pratham6314
@pratham6314 Месяц назад
Thank you Sir..
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Glad you liked ✅️
@avisheknandi4427
@avisheknandi4427 Месяц назад
Amazing ! Waiting for the next one!
@xtravengersgaming
@xtravengersgaming Месяц назад
def add(number1,number2): return number1+number2 def sub(number1,number2): return number1-number2 def multiply(number1,number2): return number1*number2 def divide(number1,number2): return number1/number2 def avg(number1,number2): return (number1+number2)/2 #asking user to select number from given list of option: print("----------------------------") print("Select Calculation you need 1.Addition 2.Subtraction 3.Mulitply 4.Divide 5.Average") print("----------------------------") #asking user for input for calculation user_input = int(input("Select option 1,2,3,4,5 for calculation: ")) #take input of 2 numbers number1 = float(input("Enter Number1: ")) number2 = float(input("Enter Number2: ")) # now using conditional statement check what user selected and print it if user_input ==1: print(f"{number1} + {number2} = {add(number1,number2)}") elif user_input ==2: print(f"{number1} - {number2} = {sub(number1,number2)}") elif user_input ==3: print(f"{number1} X {number2} = {multiply(number1,number2)}") elif user_input ==4: print(f"{number1} / {number2} = {divide(number1,number2)}") elif user_input ==5: print(f"({number1} + {number2})/2 = {avg(number1,number2)}") else: print("Invalid Input! Jyada Shanpatti nahi")
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Awesome 💯🚀 n Else condition 🤣
@xtravengersgaming
@xtravengersgaming Месяц назад
@@RishabhMishraOfficial hahah yes sir thoda sa masti...user kabhi kabhi masti karte hai,so😅
@RishikaSahuzz
@RishikaSahuzz 6 дней назад
# Assignment 4 # Write a program to create a calculator that can be perform atleast five different mathematical operations such as addition, multiplication, substraction, division and average. Ensure that he program is user friendly, prompting for input and displaying the result clearly first_num = int(input("Enter First Number: ")) operation = input("Enter Operation for perform(+,-,*,/,%,avg) : ") second_num = int(input("Enter second Number: ")) if (operation == "+"): print(f"Sum is :",first_num + second_num) elif ( operation == "-"): print(f"Substraction is :",first_num - second_num) elif ( operation == "*"): print(f"Multiplication is :",first_num * second_num) elif ( operation == "/"): print(f"Divide is :",first_num / second_num) elif ( operation == "%"): print(f"Module is :",first_num % second_num) elif ( operation == "avg"): print(f"Average is :",(first_num + second_num)/2) else: print("Please Enter correct operation") # Second Way (2) - By Function # Steps to build calculator program #1. functions for operation #2. user input #3. print result # Step1. Create Function # Function to add two numbers def add(num1, num2): return num1 + num2 def sub(num1, num2): return num1 - num2 def mul(num1, num2): return num1 * num2 def div(num1, num2): return num1 / num2 def module(num1, num2): return num1 % num2 def avg(num1, num2): return (num1 + num2)/2 # Step 2. User input print("Please Select a operation: 1. Addition 2. Substraction 3. Multiplicatio 4. Divide 5. Module 6. Average") select = int(input("Select a operation from 1,2,3,4,5,6: ")) number1 = int(input("Enter First Number: ")) number2 = int(input("Enter Second Number: ")) # Step 3. Print the Result if select == 1: print(number1, "+", number2, "=", add(number1, number2)) elif select == 2: print(number1, "-", number2, "=", sub(number1, number2)) elif select == 3: print(number1, "*", number2, "=", mul(number1, number2)) elif select == 4: print(number1, "/", number2, "=", div(number1, number2)) elif select == 5: print(number1, "%", number2, "=", module(number1, number2)) elif select == 6: print("Average is", "=", avg(number1, number2)) else: print("Please Select correct Operation :) :)") Thank You Sir! Wonderful Session☺
@hajarigupta121
@hajarigupta121 27 дней назад
Bhaiya Python ke library k related bhi kuch knowledge or guidance provide karo or python k baki or kitne lecture pending hai , please guide us in upcoming learning me
@xtravengersgaming
@xtravengersgaming Месяц назад
we can give flaot to number1 and number 2 inputs right?? coz user decimal value bhi de skata ahi so??
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Yess absolutely n that's better option 👍👍
@xtravengersgaming
@xtravengersgaming Месяц назад
@@RishabhMishraOfficial Thank you for reply
@MethreeAbhishek
@MethreeAbhishek Месяц назад
please make a video on usage of ai in data analyst
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Noted ✅️
@rishuthakur45
@rishuthakur45 24 дня назад
Bhaiya ap Humko bta sakte ho Data analyst or Data scientist ki as a fresher salary kitni Hoti ya Plz explain kuyki apko Bhaiya ise field me experience ya
@p-k-rajvansi
@p-k-rajvansi 18 дней назад
W3svhool se web deve ka course thik h bhiya reply me pls
@sonupal10k
@sonupal10k Месяц назад
very nice sir🥰🥰
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Glad you liked ✅️
@nomadic_style006
@nomadic_style006 26 дней назад
Sir I need ur help....mere jupyter notebook m Jo downloads ka option hota hai woh nahi aa raha hai ...mac m1 hai ...kya karu??
@Narendra19009
@Narendra19009 Месяц назад
Thanks
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Glad you liked ✅️
@_._SAM_._._
@_._SAM_._._ 3 дня назад
# Simple 2 digit Calci def add(a,b): result = a + b return ((result,type(result))) def minus(a,b): result = a-b return ((result, type(result))) def multi(a,b): result = a*b return ((result, type(result))) def divi(a,b): result = a/b return ((result, type(result))) def avg(a,b): result = (a+b)/2 return ((result, type(result))) print('Python Simple 2 Digit Calculator') opp = int(input('choose which opperation: 1=add\ , 2=subtract, 3=multiply, 4=divide, 5=average.')) a = int(input('enter your first no. here: ')) b = int(input('enter your second no. here: ')) print() if opp==1: print('Your Input is:',a,' + ',b) print('Your Sum is:',add(a,b)) elif opp==2: print('Your Input is:', a, ' - ', b) print('Your Difference is: ',minus(a,b)) elif opp==3: print('Your Input is:', a, ' * ', b) print('Your Product is: ',multi(a,b)) elif opp==4: print('Your Input is:', a, ' / ', b) print('Your Dividend is: ',divi(a,b)) else: print('Your Input is: (', a, '+', b,')/2') print('Your Average is',avg(a,b)) print() print('Thank you for using Python Calci')
@manjeetmishra1993
@manjeetmishra1993 25 дней назад
Hello Rishabh, I was doing the trainity project having name Investigating Metric Spike, in which when I am trying to convert the date format in MySQL using "alter table users add column temp_created_at datetime; update users set temp_created_at = str_to_date(created_at,"%d-%m-%Y' '%H %i");" this command I was getting error as "ERROR CODE: 1411.incorrect datetime value '01-01-2013 8:59' for function str_to_date ". Can you please help me to solve this.
@JustForYou023
@JustForYou023 29 дней назад
Sir Upload next video ASAP
@RishabhMishraOfficial
@RishabhMishraOfficial 28 дней назад
As soon as possible
@JustForYou023
@JustForYou023 28 дней назад
@@RishabhMishraOfficial Hn Sir .. Jldi upload kr dijeye
@Simranbhadani6565
@Simranbhadani6565 25 дней назад
Sir pandas tutorial ????
@RishabhMishraOfficial
@RishabhMishraOfficial 23 дня назад
After this series
@CodingfighterSaurabhyadav4446
@CodingfighterSaurabhyadav4446 Месяц назад
Hello rishav sir I am not control my mind in night 1,2,3 till no feeling sleepy 😢
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
In that case sleep early n ger up early n than complete your task
@Strugling_Boy_AK-18
@Strugling_Boy_AK-18 Месяц назад
Sir I am Searching Professional Certificate Course of Data Analyst pls I need your Suggestion that will help my Future ❤❤
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
I would suggest instead of certifications focus on learning skills n building amazing projects
@Strugling_Boy_AK-18
@Strugling_Boy_AK-18 Месяц назад
@@RishabhMishraOfficial Sir On The Interview they Will Not ask About our Certifications
@JustForYou023
@JustForYou023 27 дней назад
when next video will be uploaded ??
@Amardilvlogs
@Amardilvlogs 23 дня назад
Print( " sir can i became data analyst I'm pharmacy student but I'm not math background in 12th ?")
@RishabhMishraOfficial
@RishabhMishraOfficial 22 дня назад
Print("Yes absolutely, if you have the required skills n experience. Try with an internship ")
@amitchauhan9611
@amitchauhan9611 Месяц назад
Next video kb ayegi
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Coming soon ✅️
@JustForYou023
@JustForYou023 29 дней назад
College m campus aarhe h sir ... i want to complete this series as soon as possible
@RishabhMishraOfficial
@RishabhMishraOfficial 29 дней назад
Okk noted ✅️
@p-k-rajvansi
@p-k-rajvansi 17 дней назад
🌨️
@chitranshchaturvedi2333
@chitranshchaturvedi2333 22 дня назад
Hello bhaiya why there is no video added in last 2 weeks you said 2 weeks ago that you will complete the series by 2 week but there is no video uploaded till then
@RishabhMishraOfficial
@RishabhMishraOfficial 22 дня назад
Sorry, one video is coming today evening 🤦‍♂️
@chitranshchaturvedi2333
@chitranshchaturvedi2333 21 день назад
@@RishabhMishraOfficial how much days more it will take to complete the series ??
@abhishekranjan2617
@abhishekranjan2617 Месяц назад
Sir, mai aapko kal se linkedin pe apne post me tag karne ki kosis kar raha hu, lekin aapka naam nahi aa raha hai. maine aapko linkedin pe already follow kiya hua hai phir bhi..😥😥😥😥🙄🙄🙄🙄😣😣
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Yeah, i know sometime it happens. Try by searching with a few alphabets from name like @ ris and you will get in suggestions.
@JustForYou023
@JustForYou023 Месяц назад
print( " Sir !!! How many Videos will be Uploaded to complete this Series ? " )
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
print("will try to complete it 2 weeks with 5-6 more videos")
@JustForYou023
@JustForYou023 Месяц назад
@@RishabhMishraOfficial haha !! Thanks for reply sir
@JustForYou023
@JustForYou023 Месяц назад
@@RishabhMishraOfficial Waiting For new video sir ... Upload it ASAP
@p-k-rajvansi
@p-k-rajvansi 17 дней назад
☔🌷🌨️
@amitchauhan9611
@amitchauhan9611 23 дня назад
Bhai video bnani bnd kr de kya apne ab
@RishabhMishraOfficial
@RishabhMishraOfficial 22 дня назад
Aree nahi tomo video is coming
@amitchauhan9611
@amitchauhan9611 23 дня назад
Kafi time ho gya video nhi ayi
@RishabhMishraOfficial
@RishabhMishraOfficial 22 дня назад
Don't worry, I will complete this series
@tegover7866
@tegover7866 Месяц назад
Rishabh bhai mene 12 th pass ke liya h me data analytics certification course karna chahtu hu to kha se kru me non it SE hu please tell me
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
Start with Google data analytics certification program on Coursera. Also you can learn relevant skills on RU-vid
@tegover7866
@tegover7866 Месяц назад
Sir mujhe koi laptop suggest kro under 25000 k me jisme sql python and power bi launguage use kar sakte hai please please please 🥺😔
@RishabhMishraOfficial
@RishabhMishraOfficial Месяц назад
I think under 30k there are good options available, get a laptop with minimum of 8GB Ram, i3 processor n 1TB ssd hard disk
Далее
Functions in Python | Python Tutorial in Hindi 10
38:18
I learned to code from scratch in 1 year. Here's how.
41:55
Bro think he the MC.. 😂👊🔥
00:20
Просмотров 7 млн
Обыкновенное чудо
00:48
Просмотров 581 тыс.
Assignment 4 - Strings | Python Tutorial in Hindi
18:52
Coding Was HARD Until I Learned These 5 Things...
8:34
Data Types in Python | Python Tutorial in Hindi 5
20:15