Taking User Input in Python | Python Tutorial - Day #10

  Рет қаралды 822,636

CodeWithHarry

CodeWithHarry

Күн бұрын

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 😉😉

Пікірлер: 1 600
@itsme1674
@itsme1674 Жыл бұрын
Thank you Harry bhai got placed today as business analyst. It would not have been possible without you. I learnt python from your playlist.
@shortcutgaming6338
@shortcutgaming6338 Жыл бұрын
Congress bro
@nafisabid202
@nafisabid202 Жыл бұрын
@@shortcutgaming6338 Aam Aadmi Party Bro..🥳
@ultraking7239
@ultraking7239 Жыл бұрын
bhai aap ka replit par video nhi milta hai plzzz help me
@codingwithcode3083
@codingwithcode3083 Жыл бұрын
amazing python course #codingwithcode
@shortcutgaming6338
@shortcutgaming6338 Жыл бұрын
@@nafisabid202 nahi bro politics nahi 🤭🤭
@yash_sonii
@yash_sonii Жыл бұрын
a=input("enter the 1st value") b=input("enter the 2nd value") #PYTHON ALWAYS TAKE INPUT AS STRING . SO WHEN WE ADD TWO NUM LIKE 3+3 SO THIS RESULT IS # 3 + 3 = 33 # SO FIRST WE WILL CHANGE DATA TYPE WITH THE HELP OF TYPECASTING print(a+b) # CHANGE IN TYPECAST print("result") print(int(a) + int(b)) code with my little notes ☺
@ArindamSSSSSSSS
@ArindamSSSSSSSS Жыл бұрын
Wow..... appreciable 🎉🎉❤️
@TheAstroG
@TheAstroG Жыл бұрын
Thanks!
@Pessler007
@Pessler007 Жыл бұрын
Bro agr ham int lagadenge toh esa nahi karna hota h a=int(input("Enter 1st value : ")) b=int(input("Enter 2nd value : ")) Toh yehan firse int me change krne ki koi jarurat nahi h....
@PROGRAMMER_CODER
@PROGRAMMER_CODER Жыл бұрын
@@Pessler007 yes you are right dear
@be_simple888
@be_simple888 Жыл бұрын
we can also code it as # AS INTEGER a=int(input("enter the first value")) b=int(input("enter the second value")) #AS STRING a=(input("enter the first value")) b=(input("enter the second value")) but this is also a small trick your one is also nice...
@Ab_Hanan8188
@Ab_Hanan8188 4 ай бұрын
I am a 14 years old Game Developer, Android Studio Application Developer, Website Developer and Full-Stack Programmer. I am doing this course to Expert in python. 😎 I was started to learn all this skills when I was 8 years old. I learn all skills from CodeWithHarry except Game Development. I don't pay any money to learn all these skills I learn all things from KZbin. Now I am Ultra Professional IT MASTER. From Pakistan
@Random-Sad
@Random-Sad 3 ай бұрын
In which languages you do this, tell for each and which languages you know and how much percent you know each?
@Ab_Hanan8188
@Ab_Hanan8188 3 ай бұрын
@@Random-Sad I know C# 68%, Python 65%, HTML 90%, CSS 70%, JavaScript 65%, Kotlin 81%. I also do Wordpress Web Development 99% But I don't have time to do freelancing and publish my things that I make because I am student of class 9.
@Ab_Hanan8188
@Ab_Hanan8188 3 ай бұрын
@@Random-Sad C# for Unity Game development, Kotlin for Android Studio Application Development, HTML CSS Javascript for Website Development. But I don't have time to do freelancing and publish my things that I make because I am student of Class 9.
@Deepak-ip1se
@Deepak-ip1se 3 ай бұрын
@@Ab_Hanan8188 Bro you are very late into programming you should have finished this by class 5. You are left behind now
@syedusman9716
@syedusman9716 3 ай бұрын
can learn togehther i need some assistance
@debasishbesra4663
@debasishbesra4663 Жыл бұрын
Day 2 of #100DaysOfCode. In this video 10, I learned about taking user input in Python using the input() function. The input function returns a string, so I need to typecast the input to the desired data type if necessary. I also discovered how to display a message for the user while taking input, enhancing the user experience. Thank You Harry Bhaiya.
@CodeWithHarry
@CodeWithHarry Жыл бұрын
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
@user-tl7qv6td1l
@user-tl7qv6td1l 6 ай бұрын
Day 5/100. Until now harry bhaiya, i understood how basically python works as a programming language. How python resolved most of the modern technical issues, thanks to Modules and the way it is installed (using Pip). There are two types of modules: External and inbuilt (Internal modules). Then we studies more on operators and how we can make a calculator as per the logic. Then we get hands on the core concept of typecasting and how we can convert one data type to other. There are mainly two types of the same, Explicit and Implicit. Regards, Dhruv Sharma
@arghojitsaha3568
@arghojitsaha3568 4 ай бұрын
@@user-tl7qv6td1l currently you are in which year of college?
@thebruh5062
@thebruh5062 2 ай бұрын
Upasthit
@pcuser6959
@pcuser6959 Ай бұрын
pin kar do
@keshavgoyal2494
@keshavgoyal2494 Жыл бұрын
I checked the time in your stream and It was showing 3 AM 😳. Salute to the hardwork you are doing. Keep it up man!
@ChillYT01
@ChillYT01 3 ай бұрын
what is stream ?
@dipdey2660
@dipdey2660 Жыл бұрын
A few minutes ago, I finished your "C 15 hours" tutorial and now I am staring your python 100 days course. Thank you #HarryBhai for all of your free and awesome courses ❤️ Love from Bangladesh 😊❤️
@codex9709
@codex9709 Жыл бұрын
same country bro......................
@brave2407
@brave2407 Жыл бұрын
Arre vai apni Kon class a poren?
@codex9709
@codex9709 Жыл бұрын
@@brave2407 SSC exam disi abar
@clashingtv2527
@clashingtv2527 Жыл бұрын
Bhi avi Star matkaro yarr
@clashingtv2527
@clashingtv2527 Жыл бұрын
Atleast 1 month uspe kam karo and Thora hat baitha lo fir aoo Warna itna jada aksay sikhoge to fir problems ayenge
@snehashahid07
@snehashahid07 7 күн бұрын
Harry bhai I am 18year old and from Pakistan. I have started my journey of Python with you and I am already loving it.
@nomihaider96
@nomihaider96 Жыл бұрын
BEST EDUCATION CHANNEL IN KZbin WITHOUT A DOUBT one reason is because Harry Bhae care for us and wants us to learn and grow...
@VlogsbyR11
@VlogsbyR11 Жыл бұрын
a = input("Enter your first number: ") b = input("Enter your first number: ") sum = (int (a) + int (b) ) print(sum) That's how i made my program using input and integer command, Thanks Harry
@watch-library
@watch-library 6 ай бұрын
there's no way this gives an output haha
@sushobhitgoyal1222
@sushobhitgoyal1222 Ай бұрын
@@watch-library it runs finely over my side....correct me if i am missing something
@rohanahirwar447
@rohanahirwar447 Жыл бұрын
a=input("Enter the first no. :") b=input("Enter the second no. :") print(a +b) print(int(a) + int(b))
@manasdwivedi2223
@manasdwivedi2223 Жыл бұрын
If Valid As Integer
@codingwithcode3083
@codingwithcode3083 Жыл бұрын
amazing python course #codingwithcode
@Biplove78
@Biplove78 11 ай бұрын
a = int(input(Enter the first number:) b = int(input(Enther the second number:) Print(addition: , a + b)
@vedantwankar7332
@vedantwankar7332 5 күн бұрын
x=int(input("enter first number: ")) y=int(input("enter second number: ")) print(x + y) We can do this either to make it more simple.
@swordoftruth_313
@swordoftruth_313 Жыл бұрын
The only channel where I am learning python and Java ❤️
@akashchandra9329
@akashchandra9329 Жыл бұрын
Harry Bhai Input ke age typecasting kar denge to aur bhi acha lagega x=int(input("Enter 1st Number")) y=int(input("Enter 2nd Number")) print(x+y) Love you Harry Bahi❤❤
@ayushkhaire6244
@ayushkhaire6244 Жыл бұрын
i am a btech la baccha - jo teachers pe dependent na rehke aapse python seekh rha hai thank you harry sir
@raghavbhardwaj5081
@raghavbhardwaj5081 11 ай бұрын
a=input(''enter Harry bhai age") b=input("enter Harry bhai parents age") Print(int(a)+int(b)) a =100+ b=100+ ❤❤❤may you and your family always blessed ❣️
@arkyasantra6425
@arkyasantra6425 Жыл бұрын
Hey @CodeWithHarry I want to share this one method to take the whole input as an integer so correct me if I'm Wrong. x = int(input("Enter 1st number = ")) y = int(input("Enter 2nd number = ")) c = x+y print(c)
@adityagoswami8144
@adityagoswami8144 Жыл бұрын
ur code is all right
@KoushikDas2005
@KoushikDas2005 Жыл бұрын
Ya ya same hi hai both
@KoushikDas2005
@KoushikDas2005 Жыл бұрын
@@code_with_shubh already x and y are given int Then why to make it int at c It's not required at all
@code_with_shubh
@code_with_shubh Жыл бұрын
O my mistake
@code_with_shubh
@code_with_shubh Жыл бұрын
I didn't see
@anveshapal7996
@anveshapal7996 Жыл бұрын
harry bhai i am 10 class ki bacchi aur maine ye course abhi kuch din phele hi shuru kiya ....... bhout maja aa rha h ......... you are literally helping all of us for free and i am very thankful to you 😄😄
@devendrasingh-s8w
@devendrasingh-s8w 11 ай бұрын
Nice dear where are you from
@rovin7779
@rovin7779 Жыл бұрын
8:22 Here we are providing first input value as number and Second as a string it should either be only a string or an integer that's the reason we converted string to integer using typecasting .
@roopakumari4597
@roopakumari4597 21 күн бұрын
you can also do a=int(input("First no. :")) b=int(input("second no. :")) print(a+b)
@learnwithmansii
@learnwithmansii Жыл бұрын
Thank you sir for python course tutorial... Sir you are helping a lot of us for reducing errors ☺️☺️
@codingwithcode3083
@codingwithcode3083 Жыл бұрын
amazing python course #codingwithcode 👍😀
@Khan-Playz_008
@Khan-Playz_008 3 ай бұрын
bhai ki video ko sab like karo because wo hamare liye raat ke 3:00 AM ko bhi video bana rahe hai.(video ke upper-right corner me dekho) hats off for harry bro . Love you bhai, agar aap meri comment read kar rahe ho to pls reply karo.
@owaisnadeem2751
@owaisnadeem2751 Жыл бұрын
Present Sir Day - 10 04:51pm PST . 07th December 2022 . 💓 Love from Pakistan for a dedicated and great teacher Sir Haris . Love u Harry bhai ❤
@waqaryounis3299
@waqaryounis3299 Жыл бұрын
Pakistan mn kis jgha se hu
@fixerff1110
@fixerff1110 Жыл бұрын
Me too from Pakistan
@owaisnadeem2751
@owaisnadeem2751 Жыл бұрын
@@waqaryounis3299 Karachi
@waqaryounis3299
@waqaryounis3299 Жыл бұрын
@@owaisnadeem2751 kn si. Class mn hu
@codingwithcode3083
@codingwithcode3083 Жыл бұрын
amazing python course #codingwithcode
@sulemananis9468
@sulemananis9468 Жыл бұрын
Sir, thank you very much for such an interesting lesson. I have never done any coding before, but I feel I must learn from this.
@xaviation123
@xaviation123 6 ай бұрын
I created a chatbot with gui and it is available in play store wich uses open ai API All because of your coure I learnt python from you and I am a developer in Google
@programmerlovers8071
@programmerlovers8071 Жыл бұрын
I am 4th class child I know 12 + 100 is 112. 😂 Just joke. You are so cool harry bhai I like your way of tutoring.🙏🏻 I learn first programming language python from your channel when I am in 10th this is my whole life best choice to learn something new from your channel.
@Maitreya-7777
@Maitreya-7777 Жыл бұрын
boards ke liye padh lo pehle 🤣🤣
@programmerlovers8071
@programmerlovers8071 Жыл бұрын
@@Maitreya-7777 boards aba nahi hai taba tha lekin syllabus mai python chapter bhi tha
@russianschoolboy7041
@russianschoolboy7041 Жыл бұрын
Yeh kuch krega bde hoke.Keep it up
@codingwithcode3083
@codingwithcode3083 Жыл бұрын
amazing python course #codingwithcode
@airzone101
@airzone101 Жыл бұрын
Well done bro. Do your best.
@MuhammadRumman044
@MuhammadRumman044 2 ай бұрын
x = input("Enter the first number") y = input("Enter the second number") print(int(x) / int(y))
@ratndeepparmar6217
@ratndeepparmar6217 8 ай бұрын
Teaching technique is really understandable .... Good sir and Great work by you... You earning blessings from the students as well as people of India
@abhijha390
@abhijha390 Жыл бұрын
at 6:57 you can also directly typecast the variable into int by taking: x=int(input("enter the first number")) y=int(input("enter the second number")) print(x+y) this works too
@cyberx1630
@cyberx1630 11 ай бұрын
x=int(input("enter the first number")) y=int(input("enter second number ")) print(x+y) This one works 😊
@abhijha390
@abhijha390 11 ай бұрын
@@cyberx1630 I guess I have written the same thing
@cyberx1630
@cyberx1630 11 ай бұрын
@@abhijha390 there is double bracket in the last..
@cyberx1630
@cyberx1630 11 ай бұрын
@@abhijha390 if we put only one bracket it will not work..
@abhijha390
@abhijha390 11 ай бұрын
@@cyberx1630 that's clearly a typing error by my side....one can easily figure that out...
@eentr123
@eentr123 Жыл бұрын
Sir, your videos are helping me so much with my python learning journey.thanks a lott.
@shubhnegi-z1g
@shubhnegi-z1g Жыл бұрын
x = input("enter first number ") y = input("enter second number") print("the addition of two number is : " , int(x) + int(y)) print("the subtraction of two number is : " , int(x) - int(y)) print("the multiplication of two number is : ", int(x) * int(y)) print("the division of two number is : " , int(x) / int(y)) thank you harry bhai #iacceptthe100daysofcoding
@AhmedRaza-rr6vb
@AhmedRaza-rr6vb 5 ай бұрын
who else is watching after 1 year...?
@ojhavinayak
@ojhavinayak 3 ай бұрын
Me 😊
@MuhammadUzair-gh3yp
@MuhammadUzair-gh3yp Жыл бұрын
Date:29/8/2023 Hello harry I am watching your playlist after 8 months and I am at the 10th day I am happy to learn python with you and I am now in 8th class my age is 14 years and I am in 29/8/2023
@485_shaan9
@485_shaan9 4 ай бұрын
00:02 Taking user input in Python using the input function 01:13 Using the input function to take user input in Python 02:21 Understanding the input function in Python 03:26 Addressing common doubts in Python programming 05:01 Python's input function takes the input as a string, regardless of the type 06:07 Understanding arithmetic operations in Python 07:44 Handling errors and exceptions in Python 08:53 Using input functions to take user input in Python for arithmetic operations.
@wonderful_worId
@wonderful_worId Жыл бұрын
2 hour ke andar #10 completed 🔥
@chillimilli618
@chillimilli618 7 ай бұрын
Pehle aati Thi Kya?
@HeadCountKFHeadCountKF
@HeadCountKFHeadCountKF Ай бұрын
Hello Harry Bhai I am a boy of " 12 " from Pakistan and want to become a ML engineer can you make a complete ML course plz I am watching this course to learn python for ML and then I will take the next step from my roadmap which I am following plz make an course which covers all the mathematics libraries and other etc plz plz plz plz plz plz plz plz plz and love you too much🥰🥰🥰🥰🥰🥰 and please make the course🙏🙏🙏🙏
@shivvu4461
@shivvu4461 Жыл бұрын
As a 4th class student, I can confirm that 12+100 is 112 😌
@TheG-studios
@TheG-studios Жыл бұрын
but , what about every thing else ????
@shivvu4461
@shivvu4461 Жыл бұрын
@@TheG-studios As a Ph.D. in everything, I can confirm that everything else is correct too,
@suryabhansingh7905
@suryabhansingh7905 5 ай бұрын
while True: a=int(input("Type the First Number")) x = str(input("what to do?")) b=int(input("Type the Second Number")) if 'add' in x: print("The Sum of Two Numbers is : " , a+b) elif 'subtract' in x: print("The Difference of Two Numbers is: " , a-b) elif 'multiply' in x: print("The Product of Two Numbers is : " , a*b) elif 'divide' in x: print("The Division of Two Numbers is : " , a/b) else: None
@nikhil_74
@nikhil_74 Жыл бұрын
Course is great love it ❤
@codingwithcode3083
@codingwithcode3083 Жыл бұрын
amazing python course #codingwithcode
@procoder6698
@procoder6698 Жыл бұрын
Result of hw: we'll get error in all arithematic operations except add as string values will concatenate in such case
@MadaraUchiha1706_
@MadaraUchiha1706_ Жыл бұрын
I’m of fourth class bhiya smjjh nahi aa rha mere ko kuch but aapse padhna aisa lggta h jaise mere bhaiya padha rhe houn…
@phoenixknownregrets
@phoenixknownregrets Ай бұрын
There's one more way for adding integers. a = int(input("Enter First Number")) b = int(input("Enter Second Number")) print (a+b) The result will be addition of two numbers.
@Fire-X-Gamerzofficial5281
@Fire-X-Gamerzofficial5281 Жыл бұрын
Mai dekh rha hu
@ShubhamKumar-nf3he
@ShubhamKumar-nf3he 8 ай бұрын
❤❤❤ Harry Bhai ty because of you I am able to learn python as I don't know and earlier am a beginner so your teaching style is really convert me a beginner to expert it's very easy to learn from your video as you teach in easy way possible
@rajneeshop.2007
@rajneeshop.2007 Жыл бұрын
Your teaching way is awesome Harry sir.
@aniketargade90
@aniketargade90 7 ай бұрын
a=input("Enter first no:") print("first no is:",a) b=input("Enter second no:") print("second no is:",b) print("Multiplication of two no is:",int(a)*int(b))
@seekhoaurkaro
@seekhoaurkaro Жыл бұрын
a=input("Enter First number ") b=input("Enter second number ") c=input("Enter third number ") print(int(a)+int(b)+int(c)) print(int(a)*int(b)*int(c)) print(int(a)**int(b)**int(c)) print(int(a)/int(b)/int(c)) print(int(a)-int(b)-int(c))
@EDsecrets02
@EDsecrets02 8 ай бұрын
bhai ye exponent galat kia h apny values add krny k bad ap ka code run nai hu ga exponent pr any k bad
@EDsecrets02
@EDsecrets02 8 ай бұрын
x=input("the fifth number is:") y=input("enter the exponent:") print(int(x) ** int(y)) exponent is trh aye ga
@Gulshankumar-yr4mn
@Gulshankumar-yr4mn Жыл бұрын
a = (input("Enter first number: ")) b = (input("Enter second number: ")) print(a + b) only this operation worked for str + str print(a - b) { print(a * b) ALL print(a / b) THESE print(a // b) OPERATIONS print(a ** b) THROWS print(a % b) ERROR }
@IllNoobis
@IllNoobis Жыл бұрын
Hey Harry, I noticed something, before you told us the solution to the problem to the 2 number being recognized as string I tried this: a = input("Enter your name:") x = int(input("Enter First Number: ")) y = int(input("Enter Second Number: ")) print("My name is") print(x + y) So i turned the "x" & "y" values into integers before printing, and it also worked just fine. Is it ok for me to do this? Or should I do as you said? Ignore bottom just tags #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #CodeWithHarry #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #python #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode #100DaysOfCode
@jannattiwari4911
@jannattiwari4911 Жыл бұрын
It's just ok and even I use it that way too!! 😅
@thebruh5062
@thebruh5062 9 ай бұрын
It is ok and it's a better way to take input in integer form. So that if you run the program and enter alphabet rather than numbers ,then it shows an error.I use this way too
@vaibhav6720
@vaibhav6720 3 ай бұрын
5th class ka bacha here
@vaibhav6720
@vaibhav6720 Ай бұрын
@anaynagarg thx a lot btw which class are you from ?
@asethic234
@asethic234 Ай бұрын
I am from 9th class
@ShyamSah-yv9ib
@ShyamSah-yv9ib Ай бұрын
@@asethic234bro same here
@ShyamSah-yv9ib
@ShyamSah-yv9ib Ай бұрын
​@@asethic234Hey, will you be my friend to code
@TradingGod-uc3hr
@TradingGod-uc3hr Ай бұрын
Bhai pahale syllabus pura kr le 😅😅
@CopyRightOnU
@CopyRightOnU Жыл бұрын
easy way is x=int(input("Enter your number:")) y =int(input("Enter your number:")) and then print (x +y)
@Mr_Uttarakhandi
@Mr_Uttarakhandi Жыл бұрын
Go to sandeep maheswari show
@Facts_evoke
@Facts_evoke 5 ай бұрын
Class 10 Wale like karo
@NiraShinde-se2ir
@NiraShinde-se2ir 4 ай бұрын
Result AA gaya kya 😂
@ringtonelover2306
@ringtonelover2306 4 ай бұрын
Html or CSS kar ja 11 and 12th me hai
@Sibivlogs99
@Sibivlogs99 4 ай бұрын
Papers key bad free hogey Koch tu karay gey na 🤣
@AkashBhat-iv5zo
@AkashBhat-iv5zo Ай бұрын
Bhai tum boards ki tayari kro 😅 yaha kya kr raha ho 😂
@god_gamer6563
@god_gamer6563 16 күн бұрын
x = input(" enter the first number ") y = input(" enter the second number ") print(int(x),y) Input - x - 45 y - Rajat output - 45 Rajat
@CodeWithVasu
@CodeWithVasu Жыл бұрын
a=input("enter the name:=") print("you name is ", a) x=input("enter first number:=") y=input("enter second number:=") # print(x+y) print(" ") print("integer first number...") print(" ") print("the addition of both number is:",int(x)+int(y)) print("the subtracation of both number is:",int(x)-int(y)) print("the multiplication of both number is:",int(x)*int(y)) print("the division of both number is:",int(x)/int(y)) print("the moldivision of both number is:",int(x)//int(y)) print("the modular of both number is:",int(x)%int(y)) print("the exponential power of first number to second numbe is:",int(x)**int(y))
@Al_Gamer136
@Al_Gamer136 Ай бұрын
a = input("The value of a: ") b = input("The value of b: ") print(int(a) + int(b)) print(int(a) - int(b)) print(int(a) * int(b)) print(int(a) / int(b))
@muhammadzainch5217
@muhammadzainch5217 3 ай бұрын
# Integer value integer_value = 42 # Convert integer to string string_value = str(integer_value) # Concatenate string and integer result = string_value + " is the answer." # Print the result print(result)
@fearfalcon55
@fearfalcon55 10 ай бұрын
Working a = int(input("Enter Frist number :")) b = int(input("Enter second number :")) print(a+b)
@afatbsama6694
@afatbsama6694 Жыл бұрын
x=float(input("enter X=")) y=float(input("enter Y=")) print("CLICK ","1=ADD","2=SUB","3=DIV","4=MULT") test=float(input("enter operation=")) if test == 1: print(x+y) elif test == 2: print(x-y) elif test == 3: print(x/y) elif test == 4: print(x*y) print("it's work ")
@milane3801
@milane3801 3 ай бұрын
My code for arithmetic sequence : a = input(‘ enter the first term in the sequence’) b = input(‘enter the number of terms being added:’ ) c = input(‘ the nth term:’ ) d =2 print(‘ the arithmetic sequence:’ , int(b)*(int(a)+int(c))/d)
@YOUTHKAISLAM
@YOUTHKAISLAM Ай бұрын
a=("entr first number:") b=("entr second number:") print(int(a)+int(b)) result(love you harry bro)
@BLAZIN77KONG
@BLAZIN77KONG 10 ай бұрын
Harry bhai here's the code of a simple calculator i made myself😄 x = input("Input first Number: ") y = input("Input second Number: ") print("This is the addition: ", int(x) + int(y)) print("This is the subtraction: ", int(x) - int(y)) print("This is the multiplication: ", int(x) * int(y)) print("This is the division: ", int(x) / int(y))
@Davidgotmoons7
@Davidgotmoons7 5 ай бұрын
print("WELCOME TO XI CALCULATOR") input("What is your name?") x=input("Enter your first number") y=input("Enter your second number") print("Here is your result") print("Addition:"), print(int(x)+int(y)) print("Subtraction:") , print(int(x)-int(y)) print("Multiplication:"), print(int(x)*int(y)) print("Division:") , print(int(x)/int(y)) print("Thanks for using:)")
@Annabelle.869
@Annabelle.869 7 ай бұрын
thanks alot it,s so amazing and helpfull we are blessed to have a teacher like u lots of love from PAKISTAN
@Gautam-coder
@Gautam-coder 5 ай бұрын
we can also write it as a = input("Enter the first number:") b = input("Enter the second number:") print(int(a) + int(b))
@sskilledgame4132
@sskilledgame4132 4 ай бұрын
a=input(entry your name) b=input(engry dyas of life) printf(" the values a+); printf(" the values -b); print(" the operators define
@AndroidM0214
@AndroidM0214 Ай бұрын
Thanks harry I am in class 10 preparing myself to work in buisness feild, I really appreciate your efforts ... also give a legend java course 100 days LIKE!
@godhanedhanraj
@godhanedhanraj Ай бұрын
print("calculator by dwsnk") num1 = int(input("Enter First Number =")) num2 = int(input("Enter Second Number =")) add = num1 + num2 sub = num1 - num2 mult = num1 * num2 divi = num1 / num2 print(add) print(sub) print(mult) print(divi)
@MirzaAmmarofficial
@MirzaAmmarofficial Ай бұрын
#Here A Shortest Form OF Calculator # Prompting the user to input two numbers a = int(input("Write the A Number: ")) b = int(input("Write the B Number: ")) # Performing and printing various arithmetic operations print("The sum of" , a , "and" , b , "is:", a + b) print("The subtraction of A and B is:", a - b) print("The division of A by B is:", a / b) print("The multiplication of A and B is:", a * b) print("The exponent of A to the power of B is:", a ** b) print("The floor division of A by B is:", a // b) print("The modulus of A and B is:", a % b) #100daysofcode
@criminalgaming5054
@criminalgaming5054 8 ай бұрын
We can also do: a = int(input("Enter a: ")) b = float(input("Enter b: ")) print("The sum is: ", a + b) Output: Enter a: 2 Enter b: 3.9 The sum is: 5.9 7:27 It directly takes input as integer or float.
@vishusehgal-z6h
@vishusehgal-z6h Жыл бұрын
I was not able to make a calculator before but after this video i guess its like a calculator # data conversion # explicit( done by programmer) # implicit( done by python) #first calculator code by vishesh x=input ("enter first number:") y=input ( "enter second number:") print ("addition:",int(x)+int(y)) print ("multiplication:",int(x)*int(y)) print ("subtraction:",int(x)-int(y)) print ("division:",int(x)/int(y)) print ("floor division:",int(x)//int(y)) print (" modulus:",int(x)%int(y))
@ayaansingh1232
@ayaansingh1232 Жыл бұрын
i am in 8th and iwant to be an software engineer this course is realy helpful for me thank you sir🙂
@Sumit-qn5kw
@Sumit-qn5kw 5 ай бұрын
a= int(input("enter first number:")) b=int(input("enter second number:")) print(a+b)
@mysterydoor7605
@mysterydoor7605 Жыл бұрын
on adding 2 numbers as int x=input("Enter a number") y=input("Enter another number") print(int(x)+int(y)) output: Enter a number3 Enter another number2 5
@orbex9365
@orbex9365 Жыл бұрын
print("Welcome to The ultimate calculator of mine") x = input("What's your name? ") a=input("Enter the first digit(a):") b=input("Enter the second digit(b):") print("The Addition of a+b is:"), print(int(a)+int(b)) print("The Subtraction of a-b is:"), print(int(a)-int(b)) print("The Division of a/b is:"), print(int(a)/int(b)) print("The Ans of a^b is:"), print(int(a)**int(b)) print("The product of a*b is:"), print(int(a)*int(b)) print(type(a)) print(type(b))
@orbex9365
@orbex9365 Жыл бұрын
Copy And Run
@mysterydoor7605
@mysterydoor7605 Жыл бұрын
On adding 2 numbers as string x=input("Enter a number") y=input("Enter another number") print(x+y) output Enter a number10 Enter another number12 1012
@rishabrathod2348
@rishabrathod2348 5 ай бұрын
Day2, #100DaysOfCode by far now in python I have learned about modules it's types and how can it make our work easier then got to know about print function it's parameters and all the uses like sep and end command then we learnt about comments :- single line , multi line and how can they make our program more readable next about escape characters then learnt about variable, datatypes there typecasting various operators to perform operations and recently learnt about input function which takes input from user and increase the over usability as well as efficiency of the program and also at the same time open the gates to higher or big level codes
@Shararti_Bachii
@Shararti_Bachii Жыл бұрын
My Exercise :- x = input("Enter your first number:") y = input("Enter your second number:") print(int(x) + int(y)) Output Enter your first number:5 Enter your second number:2 7
@RanveerRaywal
@RanveerRaywal 6 ай бұрын
you can also do int(input("Enter your number"))
@thefoodiecouple1997
@thefoodiecouple1997 8 ай бұрын
x= input("enter a number") y= input("enter second number") print("addition = ",float(x)+float(y)) print("Subtraction =",float(x)-float(y)) print("Division=",float(x)/float(y)) print("Multiplication=",float(x)**float(y)) print("Modulas",float(x)%float(y))
@nandani-gpta
@nandani-gpta 2 ай бұрын
[PRESENT SIR] Ab aur interesting ho rha h ye programm!
@emanjameel6729
@emanjameel6729 2 ай бұрын
I also started this course 2 days ago.
@arsalalvi9578
@arsalalvi9578 6 ай бұрын
print("The Addition")(int(a)+int(b)) print("The Multiplication")(int(a)*float(b)) print("The Exponential")(int(a)**int(b)) print("The Modulus")(int(a)%int(b)) print("The Division")(int(a)/int(b)) print("The floor Division")(int(a)//int(b
@user-mc7kv7zb3w
@user-mc7kv7zb3w 5 ай бұрын
Hello Harry bhai my name is Aman. And i from "Agra" and i want to join your Channel you teach very good coding and my target in Become a Microsoft engineer I hope you will help me make my dream come true
@plaintive_tears
@plaintive_tears 5 ай бұрын
input1 = input("Enter the first input: ") input2 = input("Enter the second input: ") if input1.isdigit() and input2.isdigit(): # Convert inputs to integers and add them result = int(input1) + int(input2) print(f"{input1} + {input2} = {result}") elif input1.isalpha() and input2.isalpha(): # Concatenate the strings result = input1 + input2 print(f"{input1} + {input2} = {result}") else: print("Inputs are not of the same type, can't proceed.")
@guduruabhiram2485
@guduruabhiram2485 6 ай бұрын
a=input("enter first number") b=input("enter second number") print("sum of two numbers is ",int(a)+int(b)) learnt input function Done from my side
@thegodofdeath1620
@thegodofdeath1620 Жыл бұрын
a=input ("Enter your first no :") b=input ("Enter your second no :") int(a) int(b) print(a+b)
@nidhikabhardwaj
@nidhikabhardwaj 4 ай бұрын
feel bad for you even though 648k people watched only 20k likes.....guyzzz support him he teaches tooooooooo good....thank you so much bhaiya❣❣
@RaghavProgrammerz
@RaghavProgrammerz Жыл бұрын
a = input("Enter the first value") b = input("Enter the second value") print("The sum of a+b is:", int(a) + int(b))
@X3zon
@X3zon 10 ай бұрын
You Can also do like this: x = int(input("Enter First Number: ")) y = int(input("Enter Second Number: ")) print(x + y)
@syedshahedali7906
@syedshahedali7906 6 ай бұрын
Assalam alaikum sir ap ke sare lecture dekhta hun pure samjh mai ate hai sir bohot accha padhate ap mashallah ❤ sir
@GlitchyGlobe
@GlitchyGlobe 10 ай бұрын
A = int(input("Enter your 1st Number")) B = int(input("Enter your second number")) print(A+B)
@ameerausman3822
@ameerausman3822 Жыл бұрын
Assalam.O.Alaikum Harry bhai ap bht axha guide krty hn bestest teacher hn ap or apka teaching method itna axha h k insan bore b ni hota nd jo shirt apny wear ki h is py jo python ka tag lga h iski jga apki pic honi chye you are brilliant Haryy bhai Lots of love from Pakistan💐🌸
@benhaword
@benhaword Жыл бұрын
print("let us make an calcutor") a = (int(input("enter your first number"))) b = (int(input("enter your second number"))) op = input("enter you want to do +, -, *, /") if op == "+": print(a + b, "this is add answer ") elif op == "-": print(a - b, "this is the answer of your sub ") elif op == "*": print(a * b, "this is the mul of answer ") elif op == "/": print(a / b, "this is the answer of div ") else: print("invalit input ")
@MASKGAMING-cz3ol
@MASKGAMING-cz3ol 2 ай бұрын
a=input("enter the 1st value") b=input("enter the 2nd value") #PYTHON ALWAYS TAKE INPUT AS STRING . SO WHEN WE ADD TWO NUM LIKE 3+3 SO THIS RESULT IS # 3 + 3 = 33 # SO FIRST WE WILL CHANGE DATA TYPE WITH THE HELP OF TYPECASTING print(a+b) # CHANGE IN TYPECAST print("result") print(int(a) + int(b)) code with my little notes
@vaibhavpatel7304
@vaibhavpatel7304 Жыл бұрын
a=int(input("enter no.")) b=int(input("enter no.")) print("sum of a and b", a + b) print("sub of a and b", a - b) print("mul of a and b", a * b) print("div of a and b", a / b) without int a=input("enter no.") b=input("enter no.") print("sum of a and b", a + b) print("sub of a and b", a - b) print("mul of a and b", a * b) print("div of a and b", a / b) @vaibhav patel @codewithharry
@aadityasharma4016
@aadityasharma4016 Жыл бұрын
a = input("Enter first number: ") b = input("Enter second number: ") print(int(a) + int(b)) print(int(a) - int(b)) print(int(a) * int(b)) print(int(a) / int(b))
@harriskhan9146
@harriskhan9146 Жыл бұрын
MOST simple addition calculator print("ENter your first number") num1 = input() print("Enter your 2nd number") num2 = input() print("This is your final result",int(num1)+int(num2))
@yashbhatt4498
@yashbhatt4498 Жыл бұрын
Sir please upload before evening 🌆 thankyou 🙏 and I love to learn from you
@WarriorAnand
@WarriorAnand 4 ай бұрын
x= input("enter thr first number") y= input("enter thr second number") print(int(x)+int(y)) print (int (x)- int(y)) print(int(x)*int(y)) print(int(x)/int(y)) print(int(x)//int(y)) print(int(x)%int(y)) print(int(x)**int(y))
@bhagvatgyan482
@bhagvatgyan482 Жыл бұрын
I discovered by putting things randomly and when i used this x = int(input(" Enter First Number :)) it worked and it calculates correctly
@learntolead1109
@learntolead1109 Жыл бұрын
Harry Bhai Love ho gya apky sath ❤Love from Pakistan ❤
Strings in Python | Python Tutorial - Day #11
11:35
CodeWithHarry
Рет қаралды 906 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 56 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 1,5 МЛН
Which Operating System I use and Why 💻
14:57
CodeWithHarry
Рет қаралды 143 М.
Harsh Truth of Java in 2024! Ft. Ultimate Java Developer @Telusko
28:46
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 296 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 533 М.
Complete CyberSecurity Roadmap 2024 (Beginner's Guide)
15:04
CodeWithHarry
Рет қаралды 70 М.
String Methods in Python | Python Tutorial - Day #13
22:32
CodeWithHarry
Рет қаралды 959 М.
Coding Interviews Be Like
5:31
Nicholas T.
Рет қаралды 6 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН