New to coding. Saw lot of videos about him heard so much about him being the best code tutor online. Yes , he really is . Wish we had a teacher like him in colleges and schools .
Good Day Harry bhai, Im Rehan Hanif from Pakistan. This is my first ever coding course in my life. I've joined your course to learn Python just because of your extremely easy way of teaching. You are doing a great job Harry Bhai. Hatts Off to you: Here is my first try of your given quiz: Hope I did it right way """Quizz: simple calculator program to add two numbers""" print("Enter first number: ") num1 = input() print("Enter second number:") num2 = input() print("The sum of two numbers is", int(num1) + int(num2))
Hello Harry bhai solution is print("Add your first number:- ") n1 = input() print("Enter your second number:- ") n2 = input() print("Your result to addition to numbers is:-", int(n1) + int(n2)) Thank You for bringing amazing courses.
ur like an angel who came to my life to sought all problems , cos of just presentations made these days by teachers , i was unable to understand , but your teaching is awesome , salute and hats off to you , thnku
Quiz 1 : Print ("enter your first number") inpnum = input() print("enter your second number") inpnum1 = input() print("your answer is" , int(inpnum) + int(inpnum1) Thank You So Much Harry You Made My Lockdown 💥
I am here from your new python series. Watching this for revision. Date: 21 December 2022 14:47 exercise -1 N1=eval(input ("Enter number:")) N2=eval(input("Enter number:")) S=N1+N2 print ("Sum of N1 and N2 is ", S) # I used eval because it has asked to add two numbers,neither two integers nor two floats.
You can use int in variable too For ex:- N1 = int(input("enter your first number")) N2 = int(input("enter your second no.")) With this you dont have to use int in ur print
quiz ans print("enter your first number ") num1=int(input()) print("enter ur secod no") num2=int(input()) print ("result for your question is ", num1 + num2 ). thank you .
print("Enter 1st numbers") var1 = input("") print("enter 2nd number you want to calculate with") var2 = input("") print("sum of these numbers is", (int(var1) + int(var2))) maine yeah code likha calculator ke liye and it works I feel proud of myself right now Thanx Harry Bhai
Thanks a lot sir u r so great sir as compared to my college's teachers and professors (and ur series is free off cost) because in my college teachers only says prepare only theories for ur examination u will passed but in exam questions paper was only program bassed and I got back, now I'm 3rd student of mechanical engineering.... Love you sir
quiz 1 answer print("welcome to python calci") print("please enter numbers you want to add up") print("your first number") inpnum = input() print("your second number") inpnum2 = input() print("your result is", int(inpnum) + int(inpnum2)) YOUR VIDS ARE AWESOME BIG BROTHER I AM 18 YEARS OLD THIS HELPING ME A LOT TO LEARN PYTHON THNX, BTW I MADE THIS CALCULATOR THANKS ONCE AGAIN....
print( "1st Number" ) inpnum = input() print("2nd number") inpnum2= input() print( "Your result", int(inpnum)+ int(inpnum2)) it worked bro. thank you harry for teaching coding in such a easy way. i being a medicine student never thought learning coding can be this interesting
After learning C, C++ and Java..this language seems to me quite easy... And all this made possible by CodeWithHarry. ThankYou for bringing amazing courses for public ♥️
Hello harry, I have started learning python your tut and i also solve your quiz of making a calculator in a one go without any error, thanks to you for explaining things in such a way, kudos to you man👍👍👍👍
or u can simply write a = int(input("Enter First Number: ")) b = int(input("Enter Second Number: ")) print(f"The Sum is: {a + b}") writing int/str/float at the beginning would automatically change your string type into an integer type, and vice-versa, so that u don't need a huge block of code
print("enter the first number") inpnum1=input() print("Enter the second number") inpnum2=input() var1=sum sum=(int(inpnum1)+int(inpnum2)) print("The sum of two numbers:",int(sum)) sir this is my code (best teacher sir) LOVE FROM PAKISTAN😍😍😍
14:44 inpnum = input("Enter first Number: ") inpnum1 = input("Enter second Number: ") print("The sum of your number is", int(inpnum)+int(inpnum1)) # Created by "Kamran Khan"
This vedio is amazing ! and the course is just on another level ❤❤. I even can't explain my feelings , you are the best coding teacher ever for me! My approach for the quiz is: print ("Enter number1") Num1 = input() print("Enter number2") Num2 = input() sum = (int(Num1) + int(Num2)) print("The sum is: " + Street(sum)) Is it right or not ? I tried my best!
Bhai bhot sahi....meine iske pahale aapka video dekh ke pahale baar program likha tha....ab ye video dekh kr khud se calculator bana liya....thank u Bhai your video helping me alot
I made the one that can add decimals also but if u want u can use int instead of float ,it will give u the integer sum. Thankyou very much Harry sir. print("Enter number A") inpnum1 = input() print("Enter number B") inpnum2 = input() print("Hence, the sum is") print(float(inpnum1) + float(inpnum2))
@@soleil2816 print("enter your first number") number1=input() print("enter your second number") number2=input() print("total",int(number1)+int(number2))
print("welcome to python calci") print("please enter numbers you want to add up") print("your first number") inpnum = input() print("your second number") inpnum2 = input() print("your result is", int(inpnum) + int(inpnum2))
print("Enter Your First Number") first_number = input() print("Enter Your Second Number") second_number = input() print("Your Answer is", int(first_number) + int(second_number))
Thank you very much sir!! You really helped me understand the basics of Python which my school teachers were not able to do so. Also, to get the sum of 2 or more numbers, I tried this method - n1 = int(input("Enter the first number = ")) n2 = int(input("Enter the second number = ")) n3 = int(input("Enter the third number = ")) print ("The sum of these three numbers are = ", n1+n2+n3) ----X---- This code did work, but, I just wanted to know if this is the correct method to follow during practical in school?
14:36 num1 = int(input("Enter first number: ")) num2 = int(input("Enter second number: ")) print('The sum of these two numbers is', num1 + num2) # you are awesome bro!
The same way you can do subtraction multiplication and division also ✌️ ( Just Change the signs ) Plus : Add float Instead of Int to get Solution of decimals also 👍
Hi i am putting print("do you know the double of your number ?") print(2* str(inpnum)) But it's showing do you know the double of your number? It's 7070 Rather than It's 140
Quiz :- print("Welcome to Addition calculator " "This calculator can done only addition oeration(+)") var1=(int(input("Enter first number "))) var2=(int(input("Enter second number"))) print("Your result is" , var1 + var2)
print("Your first number is") num1=input() print("Your second number is") num2=input() print(int(num1)+int(num2)) Thank you so much "Harry Bhai" I'm also from Rampur
Quiz -1 Answer print("Addend 1") Number1 = input() print("Addend 2") Number2 = input() print("So the sum of the two addends is ", int(Number1) + int(Number2) ) I know I am late but you will find my comment in each of his Python tutorials 😊😊
I used this command and took the first no. 6 and second 7 But the output is 6. Infact the output is the the number I took as n1. Please help :) if i only use n1= int("1st no.") n2=int("2nd no.) then it works fine
The Python Programming tutorials till now are going very smooth. Thank Yous so much for your support! var1='Harry ' var2='is the ' var3='best' print(var1+var2+var3) OUTPUT: Harry is the best
My Solution: """ A calculator that adds two numbers. """ print("Enter your number:") num1 = input() print("Enter second number:") num2 = input() print("Your Answer is:",int(num1)+ int(num2))
Hey ! I would like to suggest some changes : 1.There is no need to print Enter your number . You can write that in the input function. 2.I know this is not a really valid suggestion , but you can directly convert it into int value when you take the input. 3. In the output, you will have to put int(num1)+ int(num2 in brackets and convert to string like this str(int(num1)+ int(num2). Python will not allow you to print int values along with a str value . Code : num_one=int(input("Enter your Number : ")) num_two=int(input("Enter your Number : ")) print("The sum is : "+ str(num_one+num_two)) Output : Enter your Number : 4 Enter your Number : 5 The sum is 9
Sir this is right print("enter your first number") inpnum = input() print("enter your second number") inpnum1 = input() print("you enterd", int(inpnum)+int(inpnum1))
print("enter your first number") Print("enter your second number") Inpnum 1 = input() Inpnum 2 = input() Print ("enter your first number","enter your second number", int(inpnum 1) + (inpnum 2) Kuch ziyada he mistakes hogai thi lekin ab correction karli thank you sir
print ( "Your name ",name ) print("Your age is ",age)''' a=int(input ("Enter your first number ")) b=int(input ("Enter your second number ")) c=a+b print(c)
Thanks SIr You can also use, print("Enter your first number") n1=int(input()) print("Enter your second number") n2=int(input()) print("Addition to these are", (n1)+(n2))
print("Enter Your Number: ") ans = input() print("Enter Your Second Number: ") ana = input() print("Your Answer is",(int(ans) + (int)(ana))) Thanks So Much For This Course Harry Bhai
print("Enter first number") num1=input() print("Enter second number") num2=input() print("Sum of "+num1+" and "+num2+" is" ,int(num1)+int(num2)) Thanks guru ji
14:40 print("Enter first number ") impnum = int(input()) print("Enter 2nd number ") impnums = int( input()) print("Addition of two digits are ",impnum + impnums) print("Enter first number ") impnum = input() print("Enter 2nd number ") impnums = input() print("Addition of two digits are ",int(impnum) + int(impnums)) Thank u sir.
Harry bhai 12 years is my age and wanted to learn python so I have joined your course I even made calculator with sum, multiplication, division and subtraction this being my first python program I am very proud of myself
i think it's right print("Enter your first number") firstnum = input() print("Enter your second number") secondnum= input() print("your final result=",int(firstnum)+int(secondnum))
print("Enter First Number : ") num1 = int(input()) print("Enter Second Number : ") num2 = int(input()) sum = num1 + num2 print(sum) I really like your videos.
hello harry sir i am a student of class 6th and i am getting so much help by watching your videos and the solutionisHello Harry bhai solution is print("Add your first number:- ") n1 = input() print("Enter your second number:- ") n2 = input() print("Your result to addition to numbers is:-", int(n1) + int(n2)) Thank You for bringing amazing courses.
This man is doing just next level help . May he reach to the top.
Yes
Not may , He Will !!
of course
Yess he deserves
Yes
New to coding.
Saw lot of videos about him heard so much about him being the best code tutor online. Yes , he really is . Wish we had a teacher like him in colleges and schools .
What a teaching skills bro really
I showed this to my IT teacher and she was jealous 😂
Me too bro
🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
what is his reaction bro ? lol
@@rahulchaudary1896 😂😂
sahi kiya👍🏼
Good Day Harry bhai,
Im Rehan Hanif from Pakistan. This is my first ever coding course in my life. I've joined your course to learn Python just because of your extremely easy way of teaching. You are doing a great job Harry Bhai. Hatts Off to you:
Here is my first try of your given quiz: Hope I did it right way
"""Quizz: simple calculator program to add two numbers"""
print("Enter first number: ")
num1 = input()
print("Enter second number:")
num2 = input()
print("The sum of two numbers is", int(num1) + int(num2))
Hello Harry bhai solution is
print("Add your first number:- ")
n1 = input()
print("Enter your second number:- ")
n2 = input()
print("Your result to addition to numbers is:-", int(n1) + int(n2))
Thank You for bringing amazing courses.
same to you😇
hat lawde
man thats to big my ans is in 3 lines
n1=int(input("enter your first number "))
n2=int(input("enter your secound number "))
print("total is",n1+n2)
@@neeladrii thanku mera isme work kar gya 😂🎉
I'm a railway employee, i have just started to learn python and it's helpful.
Keep up good work.😎
ur like an angel who came to my life to sought all problems , cos of just presentations made these days by teachers , i was unable to understand , but your teaching is awesome , salute and hats off to you , thnku
Quiz 1 :
Print ("enter your first number")
inpnum = input()
print("enter your second number")
inpnum1 = input()
print("your answer is" , int(inpnum) + int(inpnum1)
Thank You So Much Harry You Made My Lockdown 💥
@TM Gamerz lol
aakhri me print me bracket close kar de bhai
You can do it by
Num1 = float("Enter a number ")
Num2 = float("Enter another number")
print(float(Num1 + float(Num2)))
The first letter of first print is in uppercase. interpreter will show an error.
@@ranjanaprajapati5853 wrong answer bro :)
print("what is your first number")
inpnum1=input()
print("what is your second number")
inpnum2=input()
print(int(inpnum1)+Int(inpnum2))
Thanks Harry👌
bhai " print(int(inpnum1)+Int(inpnum2)) " is line m 2nd Int glt h int hona cahiyee error
Kay he opp teacher he 🙏🙏🙏 I never see a programer teacher to teach program like Harry sir
I am here from your new python series.
Watching this for revision.
Date: 21 December 2022
14:47 exercise -1
N1=eval(input ("Enter number:"))
N2=eval(input("Enter number:"))
S=N1+N2
print ("Sum of N1 and N2 is ", S)
# I used eval because it has asked to add two numbers,neither two integers nor two floats.
print("Enter The First Numbner:")
inpnum1 = input()
print("Enter The Second Numbner:")
inpnum2 = input()
print("Sum Is ",int(inpnum1)+int(inpnum2) )
a = int(input("Enter first number "))
b = int(input("Enter second number "))
print(a + b)
I have done my first project in my life
And I am glad to say : I AM SUCCESSFUL 😊😊
BECAUSE OF U ONLY SIR ❤️❤️
😃😃😀
shabbas beta
From today you are my master in coding. You are really a good teacher.
print("Enter any two no. for addition:- ")
a = int(input())
b = int(input())
print("Addition = ",a+b)
i start this now...but thank you very much bro...today i make my first calculater.....and it increase my confidence...
You can use int in variable too
For ex:-
N1 = int(input("enter your first number"))
N2 = int(input("enter your second no."))
With this you dont have to use int in ur print
thanks bro, From where did you learned this
thanks bro, From where did you learned this
print("Thank you so much sir for this tutorial","You make my lockdown great " )
Aapke kitne lecture ho gye Abhi tk ?
@@ItsMe-zr9xf 20 lectures ho gaye hai . vaise mai ise jyada samay nahi te pata hu. aapke kitne hogaye hai.
@@shreyashbhakare1648 const superHeroes=['Iron Man', 'Spiderman', 1, 'true'];
superHeroes.foreach(function(){
console.log('Chal Chal bap ko mat sikha)
})😂😂
@@shlokrana703 bhai tune toh Ek Naya hi language bana diya?
@@abictor3312 bhai Vanila JavaScript nahi padi kya??
14:40
print("Input first number")
inpnum1 = input()
print("input second number")
inpnum2 = input()
print("answer=" , int(inpnum1) + int(inpnum2))
quiz ans
print("enter your first number ")
num1=int(input())
print("enter ur secod no")
num2=int(input())
print ("result for your question is ", num1 + num2 ).
thank you .
#addition of 2 numbers using python
print("give the numbers u want to add")
var1=input()
var2=input()
var3=int(var1)+int(var2)
print(var3)
print("Thanks Harry")
Thanks Harry
var1="8"
var2="4"
print(10*str(int(var1)+int(var2)))
jo answer aane wala hai oo muje next line pe chahiye yaha
kaha lagauuu
plzzz guide me....
@@rohanhajare7081 bhai answer next line me hi aaega na bina /n lagaye
@@gloryjaw4327 ans na 12121212121212121212 essa aa raha hai muje
12
12
12
esaa chahiye
@@rohanhajare7081 uske liye while loop lgana padega
print("Horlicks ka dibba as a container is very much relatable as a container to understand the variable")
@Musical Novice a = "L"
b= "O"
c= "L"
print (a+b+c)
@@issanpanda LoL
@@issanpanda nice
@@issanpanda output : LOL
😂
print("Enter 1st numbers")
var1 = input("")
print("enter 2nd number you want to calculate with")
var2 = input("")
print("sum of these numbers is", (int(var1) + int(var2)))
maine yeah code likha calculator ke liye and it works I feel proud of myself right now
Thanx Harry Bhai
x = int(input("Enter first number: "))
y = int(input("Enter second number: "))
print(x + y)
✌️
Programmers prefer short codes.👍
@@bushranikhat2326 ap ko programing ..means pyrhon ati hai?
Not working in sololearn
Thanks a lot sir u r so great sir as compared to my college's teachers and professors (and ur series is free off cost) because in my college teachers only says prepare only theories for ur examination u will passed but in exam questions paper was only program bassed and I got back, now I'm 3rd student of mechanical engineering.... Love you sir
quiz 1 answer
print("welcome to python calci")
print("please enter numbers you want to add up")
print("your first number")
inpnum = input()
print("your second number")
inpnum2 = input()
print("your result is", int(inpnum) + int(inpnum2))
YOUR VIDS ARE AWESOME BIG BROTHER I AM 18 YEARS OLD THIS HELPING ME A LOT TO LEARN PYTHON THNX, BTW I MADE THIS CALCULATOR THANKS ONCE AGAIN....
May god bless your work Harry, and make you and you family live for more time. I also wish that you reach 100M subscribers soon.
Harry thx a lot getting a lot of interest in python.
This guy is doing more than needed for us to teach us coding (pthon)
I would say only one thing to like , share & subscribe.
Keep going .✌
Its*python
print( "1st Number" )
inpnum = input()
print("2nd number")
inpnum2= input()
print( "Your result", int(inpnum)+ int(inpnum2))
it worked bro. thank you harry for teaching coding in such a easy way. i being a medicine student never thought learning coding can be this interesting
After learning C, C++ and Java..this language seems to me quite easy... And all this made possible by CodeWithHarry.
ThankYou for bringing amazing courses for public ♥️
Gazab tu too coder bn gya ab 1 lakh ki job fix hai jldi jaaa
@@LoveleshVideos kis,bat ka,ghussa h bhau
@@Silenttagmotion wo gussa karraha hai
Print(“enter the first number”)
a=input()
print(“enter the second number”)
b=input()
print(int(a) +int(b))
bro I recently started coding what do you think is python a good language to start with ?
Hello harry, I have started learning python your tut and i also solve your quiz of making a calculator in a one go without any error, thanks to you for explaining things in such a way, kudos to you man👍👍👍👍
I am very happy and feel energetic by making calculator of my own code.
thank you harry bhai for teaching us
Oh Yes, I made my first calculator without any help or answer, and it worked, Thank You Very Much Mr. Harry!!!!
Print("enter first number")
inpnum = input()
Print("enter second number")
inpnum1 =input()
Print("addition is",int(inpnum) + int(inpnum1) )
or u can simply write
a = int(input("Enter First Number: "))
b = int(input("Enter Second Number: "))
print(f"The Sum is: {a + b}")
writing int/str/float at the beginning would automatically change your string type into an integer type, and vice-versa, so that u don't need a huge block of code
@@Streltsi_007 why did you use f before double quotes.???
@@ashukumar2851 these are called F-Strings… it lets you use values within your strings
print("enter the first number")
inpnum1=input()
print("Enter the second number")
inpnum2=input()
var1=sum
sum=(int(inpnum1)+int(inpnum2))
print("The sum of two numbers:",int(sum))
sir this is my code (best teacher sir) LOVE FROM PAKISTAN😍😍😍
14:44
inpnum = input("Enter first Number: ")
inpnum1 = input("Enter second Number: ")
print("The sum of your number is", int(inpnum)+int(inpnum1))
# Created by "Kamran Khan"
Answer:
a = int(input("Enter the first number: "))
b = int(input("Enter the second number: "))
plus = a + b
print("The summation is:", plus)
No he/she is wrong
Print ("tell the first number")
Num1 = input()
Print("now pls tell the second number")
Num2 = input()
Print ("the answer is" , int(Num1) + int(Num2))
3
4
7
"word to word" NOPE
"CODE TO CODE " Samajh aaya
A Very Very Thank U Sir
This vedio is amazing ! and the course is just on another level ❤❤.
I even can't explain my feelings , you are the best coding teacher ever for me!
My approach for the quiz is:
print ("Enter number1")
Num1 = input()
print("Enter number2")
Num2 = input()
sum = (int(Num1) + int(Num2))
print("The sum is: " + Street(sum))
Is it right or not ?
I tried my best!
what is the street var for
or
print("Sum = ",int(input("Enter 1st number: ")) + int(input("Enter second number: ")))
Your code is very good code.
Cool Code Dude!
Bhai bhot sahi....meine iske pahale aapka video dekh ke pahale baar program likha tha....ab ye video dekh kr khud se calculator bana liya....thank u Bhai your video helping me alot
I made the one that can add decimals also but if u want u can use int instead of float ,it will give u the integer sum.
Thankyou very much Harry sir.
print("Enter number A")
inpnum1 = input()
print("Enter number B")
inpnum2 = input()
print("Hence, the sum is")
print(float(inpnum1) + float(inpnum2))
Quiz Answer:
firstnum = input("Enter first number")
secondnum = input("Enter second number")
print(firstnum, '+', secondnum, '=', int(firstnum)+int(secondnum))
H
Why it is not working when i opened it in explorer 🥺
Bhai galt h yeh
@@soleil2816 print("enter your first number")
number1=input()
print("enter your second number")
number2=input()
print("total",int(number1)+int(number2))
@@soleil2816 yea try karo
a = int(input("Enter a number"))
b = int(input("Enter another number"))
c = a + b
print(f"The sum of the two numbers you entered is {c}")
Error
print("welcome to python calci")
print("please enter numbers you want to add up")
print("your first number")
inpnum = input()
print("your second number")
inpnum2 = input()
print("your result is", int(inpnum) + int(inpnum2))
print("Enter Your First Number")
first_number = input()
print("Enter Your Second Number")
second_number = input()
print("Your Answer is", int(first_number) + int(second_number))
solution of quiz:-
a=int(input("enter first number"))
b=int(input("enter second number"))
print("sum of these numbers is", a+b)
all youtubers are here to make money from these ads but you really want to help us
Thank you very much sir!! You really helped me understand the basics of Python which my school teachers were not able to do so.
Also, to get the sum of 2 or more numbers, I tried this method -
n1 = int(input("Enter the first number = "))
n2 = int(input("Enter the second number = "))
n3 = int(input("Enter the third number = "))
print ("The sum of these three numbers are = ", n1+n2+n3)
----X----
This code did work, but, I just wanted to know if this is the correct method to follow during practical in school?
yes
14:36
num1 = int(input("Enter first number:
"))
num2 = int(input("Enter second number:
"))
print('The sum of these two numbers is', num1 + num2) # you are awesome bro!
I made My First Calculator with float(firstN) + float(secondN)
For Decimals and It work 😃
Thanks Sir 🙏🏻🙏🏻🙏🏻
The same way you can do subtraction multiplication and division also ✌️ ( Just Change the signs )
Plus : Add float Instead of Int to get Solution of decimals also 👍
hi
Bro i can 't print var1 = "hello world' var4 = 45.5
i get error and error again
can you explain it?
@@shortsforuse7979 because in var1 u used only single' quote it should be like this"hello world"
@@saachigupta4545 ok thanks
Hi i am putting
print("do you know the double of your number ?")
print(2* str(inpnum))
But it's showing
do you know the double of your number?
It's 7070
Rather than
It's 140
Quiz :-
print("Welcome to Addition calculator
" "This calculator can done only addition oeration(+)")
var1=(int(input("Enter first number ")))
var2=(int(input("Enter second number")))
print("Your result is" , var1 + var2)
print("Your first number is")
num1=input()
print("Your second number is")
num2=input()
print(int(num1)+int(num2))
Thank you so much "Harry Bhai" I'm also from Rampur
CODE: For add calculator
print("Enter 1st number")
inp1=input()
print("Enter 2nd number")
inp2=input()
print("The addition of 1st & 2nd number is:",int(inp1)+int(inp2))
Great Tutorial. !!
Quiz -1 Answer
print("Addend 1")
Number1 = input()
print("Addend 2")
Number2 = input()
print("So the sum of the two addends is ", int(Number1) + int(Number2) )
I know I am late but you will find my comment in each of his Python tutorials 😊😊
var1="8"
var2="4"
print(10*str(int(var1)+int(var2)))
jo answer aane wala hai oo muje next line pe chahiye yaha
kaha lagauuu
plzzz guide me....
@@rohanhajare7081
laga na
@@vibhu613 kaha bhai
@@rohanhajare7081 Nahi yaar o method kaam nahi kar ri.. Jo mai socha tha... Isko loop lagana padega
n1 = int(input("type frist number"))
n2 = int(input("type second number"))
print(n1 + n2)
I used this command and took the first no. 6 and second 7
But the output is 6. Infact the output is the the number I took as n1. Please help :)
if i only use n1= int("1st no.")
n2=int("2nd no.)
then it works fine
@@guri735 in the mentioned code how are you getting your input?
Because you have used type keyword here
harry bhaiya please tell how to print the output of print(100*str(int(var1)+int(var2))) in new line each
Yes harry bro... please tell how to print in new line each? TIA :)
The Python Programming tutorials till now are going very smooth. Thank Yous so much for your support! var1='Harry ' var2='is the ' var3='best' print(var1+var2+var3) OUTPUT: Harry is the best
right
Wrong code
This should be like
Double quote
("Harry") not ('harry)
Hlo Harry Bhai, apply very hardwork to continue. I appreciate you hardwork. Keep it up.
My Solution:
"""
A calculator that adds two numbers.
"""
print("Enter your number:")
num1 = input()
print("Enter second number:")
num2 = input()
print("Your Answer is:",int(num1)+ int(num2))
Hey ! I would like to suggest some changes :
1.There is no need to print Enter your number . You can write that in the input function.
2.I know this is not a really valid suggestion , but you can directly convert it into int value when you take the input.
3. In the output, you will have to put int(num1)+ int(num2 in brackets and convert to string like this str(int(num1)+ int(num2). Python will not allow you to print int values along with a str value .
Code :
num_one=int(input("Enter your Number : "))
num_two=int(input("Enter your Number : "))
print("The sum is : "+ str(num_one+num_two))
Output :
Enter your Number : 4
Enter your Number : 5
The sum is 9
@@vishnujoshi2461 correct.. But the input numbers r not shown in the output!
var=int(input("enter a number"))
var2=int(input("enter a number"))
Print("sum=",var+var2)
I'm First Sab Se Pahale Like Kar De Ta Hu 👍
print("enter your 1st no")
num1= input()
print("enter 2nd no")
num2=input()
a= int(num1)+int(num2)
print("the sum of number is " ,a )
#thank you harry
print(100*"Thank you
")
😂😂😂
@@somashekarsanjay4879 op lol
print(type(x+y+z))
@@somashekarsanjay4879 isme hasne wali kya baat hai 🙄
@@okayokay-wd9rh nothing leave😁
Sir this is right
print("enter your first number")
inpnum = input()
print("enter your second number")
inpnum1 = input()
print("you enterd", int(inpnum)+int(inpnum1))
👍
This is not run
Aman Gupta why sir
I had already started making my first calculator during the video when he said to do so. 😂
Coincidence...😁😁😀😂
print("enter your first number")
Print("enter your second number")
Inpnum 1 = input()
Inpnum 2 = input()
Print ("enter your first number","enter your second number", int(inpnum 1) + (inpnum 2)
Kuch ziyada he mistakes hogai thi lekin ab correction karli thank you sir
print ( "Your name ",name )
print("Your age is ",age)'''
a=int(input ("Enter your first number "))
b=int(input ("Enter your second number "))
c=a+b
print(c)
QUIZ:
print("enter first number ")
a = int(input())
print("Enter second number")
b = int(input())
print("The addition is ", a+b)
8:25 now I can write I am sorry 100 times
Me too XD
As simple as f**k
Thanks SIr
You can also use,
print("Enter your first number")
n1=int(input())
print("Enter your second number")
n2=int(input())
print("Addition to these are", (n1)+(n2))
print("write your 1st number: ")
first=int(input())
print("write your 2nd number: ")
sec=int(input())
print(first+sec)
Good think
I have no trust on my IT teacher, she is teach entire class just html from past 6 months and not even any other thing not even css,java or php
plot twist : the whole series is made in one day.😁
Really😱😱??
@@mehervanigupta4779 yes coz same T-Shirt 😂🤣
Bhai fir shout out ka kya
No
print("Horlicks Ke dibbe mein namak")😂😂😂😂
@Samarth Kaul lol
😅😅😅😅good joke
Syntax error!!
@@amitabhanand12 i didn't wrote that emojis as a code
@Samarth Kaul i didn't wrote that emojis as a code
Bhai to editing me bhi master hai.
Whatsapp no plz for queries
Var1="Harry "
Var2="Is "
Var3="The "
Var4="Best "
Print(var1+var2+var3+var4)
Yaha pe 'var' likhna jaroori nahi hai kuch bhi likh sakte hai
Mai to a , b , c , etc likhta hu 👍🏾
There should be an error.
Because in the declaration you've entered capital 'V' & in the print statement it's small 'v'.
@@pakshalghiya5750 also print's P is written in capital so...
print("Enter Your Number: ")
ans = input()
print("Enter Your Second Number: ")
ana = input()
print("Your Answer is",(int(ans) + (int)(ana)))
Thanks So Much For This Course Harry Bhai
Kon hai vai tu jinone dislike kiya!!
I really hate this kind of people. Samaj nehi aya to comment me bol. Dislike q kiya😡😡
Ara bhaiii ya serf Demotivate Kara Janta ha or kuch nahi aata in logo ko
@@smileplz1334 to fir nehi dekho na.. eya tumhari problem ham logo k nehi
@@techieroy6177
Kiski problem bhaii esma ma tumhari baat Ko sahi Bata Raha hu dang SA padoo
Pakistan se honge wo log... Jalte hai wo log humse
Bhai mere me var likh rha hu to kaam nahi kr rha
print("Enter first number")
num1=input()
print("Enter second number")
num2=input()
print("Sum of "+num1+" and "+num2+" is" ,int(num1)+int(num2))
Thanks guru ji
14:40
print("Enter first number
")
impnum = int(input())
print("Enter 2nd number
")
impnums = int( input())
print("Addition of two digits are ",impnum + impnums)
print("Enter first number
")
impnum = input()
print("Enter 2nd number
")
impnums = input()
print("Addition of two digits are ",int(impnum) + int(impnums))
Thank u sir.
Harry bhai 12 years is my age and wanted to learn python so I have joined your course I even made calculator with sum, multiplication, division and subtraction this being my first python program I am very proud of myself
Solution:
num1 = int(input("Enter Your First Number: "))
num2 = int(input("enter Your Second Number: "))
print(num1 * num2)
Thanks Bro for such help
i think it's right
print("Enter your first number")
firstnum = input()
print("Enter your second number")
secondnum= input()
print("your final result=",int(firstnum)+int(secondnum))
print("Enter First Number : ")
num1 = int(input())
print("Enter Second Number : ")
num2 = int(input())
sum = num1 + num2
print(sum)
I really like your videos.
first = input("first: ")
second = input("second: ")
sum = float(first) + float(second)
print("sum: " + str(sum))
calculator code
hello harry sir i am a student of class 6th and i am getting so much help by watching your videos and the solutionisHello Harry bhai solution is
print("Add your first number:- ")
n1 = input()
print("Enter your second number:- ")
n2 = input()
print("Your result to addition to numbers is:-", int(n1) + int(n2))
Thank You for bringing amazing courses.
14:48---->>>
print("Enter the first number")
a=float(input())
print("Enter the second number")
b=float(input())
print("sum is ",a+b)
Container example is super.
Ek hi example me concept samajh me aaya.
x=int(input(" enter a number"))
y=int(input("enter a number"))
print("sum of "+str(x)+" and "+str(y)+" is ",x+y)
#thanks for making this playlist
print("enter 2 numbers")
num1=input()
num2=input()
print(int(num1) + int(num2))
14:40
Print("enter Your first number")
a = input ()
Print("inter Your second number")
b = input()
Print("Ans",int(a)+int(b))
#Simple Calculator which just adds two number
print("Enter Num1: ")
num1 = input()
print("Enter Num2: ")
num2 = input()
print("Addition = ",int(num1)+int(num2))
you are the first teacher who teach me how to code thank you harry bro for teach me coding
Coding ki feel aa gayi Harry Bhai , Its my first language...Thank you :)