name = input("What is your name?: ") age = int(input("How old are you?: ")) height = float(input("How tall are you?: ")) print("Hello "+name) print("You are "+str(age)+" years old") print("You are "+str(height)+"cm tall")
#take the user's name as input name = input("Enter your name: ") print(name) #the vaiable that includes the welcome message is alredy provided. #Please complete this part using the knowledge obtained in this lesson. greeting = #print the welcome message print(greeting) Please help to solve this problem
I'm taking a python course and input function was briefly explained at this point. I tried coding it myself and was getting a syntax error. You solved my problem. Thank you!
Thanks for the in depth video explaining casting for different data type. I am new to Python and this video helped me understand the basics very quickly. Great explanation.
Thanks bro your vids are the best they really helped me a lot in last minutes. I'm writing a test now at 2:00 and I wasn't really that focused during my lectures, I just discovered you now and you really helped, THANK YOU!!
- Write a loop that asks the user to input an integer between 10 and 60. If they enter something that is not an integer in that range, ask them again, giving an error message to remind them. Once they enter an integer, create a loop that keeps dividing the number by two, taking its integer value, and printing the result until it reaches zero. For example, entering 55 would produce: 55, 27, 13, 6, 3, 1 Run the code, first entering a value outside the range 10 - 60. Then run the code again with a valid value. • Make sure your output shows the results of both runs
Awesome!! I don't see many American use Celsius. And now you also use centimeters. Oh!! and the video is as great as always. I almost all your Java tutorials. Right now, I just start your Python and JavaScript together!! All are great!!!!!
Is there a way to create a input funktion looking like this: "" , I tried it several times, but got to no solution. Idea: Name = print("< ") + input(" ").strip() + print(">")
I started learning this program just a few days ago and run into you. Your videos are awesome. However, I have a question (not sure if this too early to talk about), but how would I limit user to enter only alphabet not some numbers for his name?
u can use the isalpha() function, if the entered string has anything but alphabets, the function would return a false value, so u can check if stringvalue.isalpha() == False, if yes, then there are string + numbers... Hope this helps
you can also use the TRY and EXCEPT function to check if it is a aphabet or not if it isnt it will tell the user to enter the alphabet and will keep repeating until it gets it right, u would have to use a while loop to do that.
as Fyuse said use try except but if the user typed a number insead of a name give them a massage saying something like "please retype your name correctly" or "only use letters" or whatever what you want the imput to be use if statement with isalpha() if you want no spaces
I have issues understanding the logic of using input function and how it used followed by print. Trying to understand it by this video..Its a great video so far @brocode👏👏👏👏👏👏
After taking user inputs, what are different ways to hide user prompts in python for eg: what is your name? , how old are you ? such text should not appear after getting inputs from user.
Can the user input be an arithmetic operation? For example when you ask them "How old are you? " Can they enter 20+1 instead of 21? If not, how to fix that? Thanks.
Hey Bro! I have a project where it relies on the user inputting a number and I use this line of code A = float(input("Insert a number (it can be a decimal number)")) If the user inputs anything else other than numbers my whole code breaks. Can you help me?
Bro i have a question i hope you could help me So whenever i run any simple input code The IDE doesn’t accept user input so i can’t write down anything in the console when i run the code What should i do ?
How can I remove the result of all the inputs that I run it before in VSCode? I mean When I run hello I found the name in code terminal!! Not in python terminal is that normal? And do you think it can delete because I want to do it again with different results.
how can i make the user input become underline right after i press enter(i dont need to use print to know that its underline, it display on terminal after i press enter)? thank you bro
Print (" you are"+"str(age)+,"years old") In your code there are two age variable with different values assigned to it but it chose 2nd one(age=age+1) to print, why? Is it because first one process finished before second one?
I don't know what is going on with my computer. I'm typing in the exact same thing as you and no matter what I type in it says "name 'bro' is not defined" I can't even get it to print because it does not recognize it even though I'm doing the exact same thing. This is so frustrating
Hey @Bro Code I want to make you see my code it work same as like you but it is less complicated name = input("What is your name") age = input("How old are you") age = int(age) print("Hello" + " " + name + " "+ "great Job") Any suggestion?
name = input("What is your name?: ")
age = int(input("How old are you?: "))
height = float(input("How tall are you?: "))
print("Hello "+name)
print("You are "+str(age)+" years old")
print("You are "+str(height)+"cm tall")
Bro i didn't need to type (int/float and print str)but when typed age and height it was correct means there was no error!
mail =str(input ("enter your mail id"))
print("your mail id is " + mail)
print(type(mail))
Erode code
whats should i do if user types string in intiger input pls help bro!
#take the user's name as input
name = input("Enter your name: ")
print(name)
#the vaiable that includes the welcome message is alredy provided.
#Please complete this part using the knowledge obtained in this lesson.
greeting =
#print the welcome message
print(greeting) Please help to solve this problem
Good lecture ❤
I'm taking a python course and input function was briefly explained at this point. I tried coding it myself and was getting a syntax error. You solved my problem. Thank you!
Best video for beginners
It is unbelievably easy to follow this series - time goes quick and the way he teaches is top notch
Thanks for the in depth video explaining casting for different data type. I am new to Python and this video helped me understand the basics very quickly. Great explanation.
brocode=("thanku")
>>> print(brocode)
thanku
Thanks bro your vids are the best they really helped me a lot in last minutes. I'm writing a test now at 2:00 and I wasn't really that focused during my lectures, I just discovered you now and you really helped, THANK YOU!!
made a calculator to calc volume of a cube type object; pretty cool thanks for the tutorials
You're welcome! Thanks for watching!
Your explanations are the clearest I've seen. Thank you, Bro.
- Write a loop that asks the user to input an integer between
10 and 60. If they enter something that is not an integer in that range, ask them again, giving an error message to remind them. Once they enter an integer, create a loop that keeps dividing the number by two, taking its integer value, and printing the result until it reaches zero.
For example, entering 55 would produce: 55, 27, 13, 6, 3, 1 Run the code, first entering a value outside the range 10 -
60. Then run the code again with a valid value.
• Make sure your output shows the results of both runs
2:17, instead of print("Hello "+name) can you do print(f"ur name is {Name}")
Is there a way to turn a string into non-string? For example, a string can turn into int or float but not just words without the quotations.
Broer, bedankt! Je doet het echt goed man👍👍👍
Awesome!! I don't see many American use Celsius. And now you also use centimeters.
Oh!! and the video is as great as always. I almost all your Java tutorials. Right now, I just start your Python and JavaScript together!!
All are great!!!!!
Is there a way to create a input funktion looking like this: "" , I tried it several times, but got to no solution. Idea: Name = print("< ") + input(" ").strip() + print(">")
the way you teach is top notch
I started learning this program just a few days ago and run into you. Your videos are awesome. However, I have a question (not sure if this too early to talk about), but how would I limit user to enter only alphabet not some numbers for his name?
u can use the isalpha() function, if the entered string has anything but alphabets, the function would return a false value, so u can check if stringvalue.isalpha() == False, if yes, then there are string + numbers...
Hope this helps
you can also use the TRY and EXCEPT function to check if it is a aphabet or not if it isnt it will tell the user to enter the alphabet and will keep repeating until it gets it right, u would have to use a while loop to do that.
as Fyuse said use try except but if the user typed a number insead of a name give them a massage saying something like "please retype your name correctly" or "only use letters" or whatever what you want the imput to be
use if statement with isalpha() if you want no spaces
Bro idk why but when i run it there is nothing down below in the console, i have no idea what im doing wrong loool
Bro=("Amazing video!")
>print(Bro)
>> Amazing video!
How come I can find a TH-cam video on this specific issue and not any of the other incredibly specific issues I'm dealing with?
Thanks,bro!
Lessssssgooo
brooo you are good.really helped me a lot
I have issues understanding the logic of using input function and how it used followed by print. Trying to understand it by this video..Its a great video so far @brocode👏👏👏👏👏👏
After taking user inputs, what are different ways to hide user prompts in python for eg: what is your name? , how old are you ? such text should not appear after getting inputs from user.
i love this video. thank you i couldnt find a video that explains all of this better
6:09 bro u just smashed the Enter button
Question: how do you set a variable to a persons age
And complete it with the statement you have been alive
Thank you you’re helping me with my homework appreciate you
Thank You dude I was trying a code and it did not work
Your tutorial helped me alot
thank you
THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT
👍👍👍👍👍 The best tutorial!
cool content mr bro
Thanks I finally got rid of my homework
Thank you so much Bro Code. what you just taught me is simply amazing, you truly have a gift. Thank you once again
he was born a giga chad
Ok. I am so dumb...But I have questions.
1. How do you run the file at the bottom?
Can the user input be an arithmetic operation? For example when you ask them "How old are you? " Can they enter 20+1 instead of 21? If not, how to fix that? Thanks.
THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT 🤩
Thank you Bro I just learnt QBasic now starting to learn Python then going on to httml
Broooooo good job!!💛💛💛
Awesome and simple to follow and learn. Thank you bro for the tutorial. So valuable!!🙏👍
BROOOOOOOOOO YOU ARE SO AWESOME
Hey Bro!
I have a project where it relies on the user inputting a number and I use this line of code
A = float(input("Insert a number (it can be a decimal number)"))
If the user inputs anything else other than numbers my whole code breaks.
Can you help me?
Really cool! Used it to make a madlib!
Thanks for the course
Which editor are using there Bro?
amazing video. i like the way you teach each and every concept
I love the videos sir, thank you.
as always bro never dissapoints us
Great vid Bro
Thanks so much!
THIS REALY HELPED
Nice tutorial
Just my question is how to write the equal sign ( = ) cause I don't have it on my keyboard
Hi, can you help with coding for "while"looping?
while True:
a=int(input("what is 1+1= "))
if a==2:
print ("correct!")
break
else:
print("incorrect")
Hey! Thank you!
What is the difference between input and print please
Bro i have a question i hope you could help me
So whenever i run any simple input code
The IDE doesn’t accept user input so i can’t write down anything in the console when i run the code
What should i do ?
from what software are you opening python?. Cause when I type this code in W3School web it doesn't work.
Subscribed bro : D
Thank you. This is very helpful! :)
bro that's was one of the easiest ladders I've seen
Very nice sir ❤😊
Wonderful bro👍
thanks man very helpful
Great explanation.
great tutorial
very helpful for my study
i love you, bro code.
Can U make a vid creating this program and use GUI with it?
the float input takes in a int like 32 and returns a float 32.0. if you input a float for age input which is int() it crashes
as it should
Thanks, useful knowledge
Thank you , for this divine video
You are Awesome Bro 🤙
Awesome dude
you are great teacher thank you Bro
so good
you should do a ocr coure it for gcse
Thanks sir ji👍👍👍
How can I remove the result of all the inputs that I run it before in VSCode? I mean When I run hello I found the name in code terminal!! Not in python terminal is that normal? And do you think it can delete because I want to do it again with different results.
What is the best extension to download for debugging for Python?
very good video this helps tons
Copy-pasted your code and keep getting an error :/
File "", line 1, in
NameError: name 'Bro' is not defined
same, idk what to do:(
@@Soso_maness I just found how to fix it. Type raw_input instead of just input . I guess it changed in some update recently.
@@Evan1527 thank you verrrrrry much
@@Evan1527 tnks mahnn...
Who are the Minecraft players😊.
Thanks, this is so easy to understand
Hey dude how do I show the vaule of something? Like
Discount=(10*30)
How do I display discount amount? That is 300
NICE BRO, THANK YOU.
how can i make the user input become underline right after i press enter(i dont need to use print to know that its underline, it display on terminal after i press enter)? thank you bro
Print (" you are"+"str(age)+,"years old")
In your code there are two age variable with different values assigned to it but it chose 2nd one(age=age+1) to print, why?
Is it because first one process finished before second one?
Thank you bro I love it
very helpful ,bro ;)
good one bro
How do you input probabilities into python
liked👍, subscribed✅ and i am now a fellow BRO
how do i send it to someone so they see the questions but not the whole code and they can just reply to the questions
Who to print all those in different lines and big space tabs
I don't know what is going on with my computer. I'm typing in the exact same thing as you and no matter what I type in it says "name 'bro' is not defined" I can't even get it to print because it does not recognize it even though I'm doing the exact same thing. This is so frustrating
Type: raw_input instead of input.
What’s the program you are on?
Paycharm
Bro u saved me day before test
Nice 👍 🙂
name = input("what is your name: ")
print("Hello" + name)
Hey @Bro Code
I want to make you see my code it work same as like you but it is less complicated
name = input("What is your name")
age = input("How old are you")
age = int(age)
print("Hello" + " " + name + " "+ "great Job")
Any suggestion?
it works fine without str() int() (data types)I think this is because the update or something like that
Same here dude