Python user input ⌨️

  Рет қаралды 214,623

Bro Code

Bro Code

3 жыл бұрын

Python user input tutorial
#python #user #input
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 Code merch store: teespring.com/stores/bro-code-5
------------------------------
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
Free Download / Stream: bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A...
------------------------------

Пікірлер: 219
@BroCodez
@BroCodez 3 жыл бұрын
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")
@crisp6875
@crisp6875 3 жыл бұрын
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!
@kalaiarts1549
@kalaiarts1549 2 жыл бұрын
mail =str(input ("enter your mail id")) print("your mail id is " + mail) print(type(mail)) Erode code
@n0on51
@n0on51 Жыл бұрын
whats should i do if user types string in intiger input pls help bro!
@dkdinesh2656
@dkdinesh2656 Жыл бұрын
#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
@agbesidaniel2850
@agbesidaniel2850 Жыл бұрын
Good lecture ❤
@jakestallone2212
@jakestallone2212 Жыл бұрын
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!
@MJE536
@MJE536 Жыл бұрын
Best video for beginners
@laurenceseberini6241
@laurenceseberini6241 Жыл бұрын
It is unbelievably easy to follow this series - time goes quick and the way he teaches is top notch
@realskater54211
@realskater54211 Жыл бұрын
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.
@user-mm5uk8mq4c
@user-mm5uk8mq4c Жыл бұрын
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!!
@wrightworld4556
@wrightworld4556 5 ай бұрын
Your explanations are the clearest I've seen. Thank you, Bro.
@darrendavies5704
@darrendavies5704 Жыл бұрын
Broer, bedankt! Je doet het echt goed man👍👍👍
@mowrldwide3302
@mowrldwide3302 Жыл бұрын
i love this video. thank you i couldnt find a video that explains all of this better
@PRAN-kx1ml
@PRAN-kx1ml 2 жыл бұрын
amazing video. i like the way you teach each and every concept
@icebladeplays
@icebladeplays 2 жыл бұрын
Thank you. This is very helpful! :)
@kaiiemsawat3859
@kaiiemsawat3859 2 жыл бұрын
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!!!!!
@kelleyannbart8348
@kelleyannbart8348 Жыл бұрын
Awesome and simple to follow and learn. Thank you bro for the tutorial. So valuable!!🙏👍
@minusplus7891
@minusplus7891 Жыл бұрын
THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT
@Satoshi096
@Satoshi096 Жыл бұрын
- 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
@zinaidaseremet2775
@zinaidaseremet2775 9 ай бұрын
THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT 🤩
@TehArcy
@TehArcy 2 жыл бұрын
made a calculator to calc volume of a cube type object; pretty cool thanks for the tutorials
@BroCodez
@BroCodez 2 жыл бұрын
You're welcome! Thanks for watching!
@MsOritz
@MsOritz 10 ай бұрын
Thank you so much Bro Code. what you just taught me is simply amazing, you truly have a gift. Thank you once again
@EmmettReaville
@EmmettReaville 15 күн бұрын
he was born a giga chad
@linuso524
@linuso524 Жыл бұрын
THIS REALY HELPED
@fycs_101_mustafa9
@fycs_101_mustafa9 Жыл бұрын
Thanks for the course
@ralphibezim352
@ralphibezim352 2 жыл бұрын
Great vid Bro
@sheydaau
@sheydaau 2 жыл бұрын
Broooooo good job!!💛💛💛
@bluekiddo9969
@bluekiddo9969 2 жыл бұрын
as always bro never dissapoints us
@patrunks3906
@patrunks3906 22 күн бұрын
I love the videos sir, thank you.
@jackjshorts
@jackjshorts Жыл бұрын
Really cool! Used it to make a madlib!
@JaceMoore1
@JaceMoore1 Жыл бұрын
Thank you you’re helping me with my homework appreciate you
@radinahmadi2211
@radinahmadi2211 3 ай бұрын
Thank you , for this divine video
@barristar9338
@barristar9338 2 жыл бұрын
Thanks, this is so easy to understand
@minhazrahman7463
@minhazrahman7463 2 жыл бұрын
You are Awesome Bro 🤙
@Sure_Math_Center
@Sure_Math_Center Жыл бұрын
Hey! Thank you!
@sureshkrishna3915
@sureshkrishna3915 3 жыл бұрын
Awesome dude
@aebordones00
@aebordones00 10 ай бұрын
👍👍👍👍👍 The best tutorial!
@PekkaNetwork
@PekkaNetwork 2 жыл бұрын
Thank you Bro I just learnt QBasic now starting to learn Python then going on to httml
@WarriorNinjaMaster
@WarriorNinjaMaster 8 ай бұрын
Thank you bro I love it
@intenzgamerz4882
@intenzgamerz4882 2 жыл бұрын
Thank You dude I was trying a code and it did not work Your tutorial helped me alot thank you
@juancaca1993
@juancaca1993 2 жыл бұрын
Subscribed bro : D
@VassiliosBantourakis
@VassiliosBantourakis 2 жыл бұрын
Awesome!
@jaysonabayan3279
@jaysonabayan3279 3 жыл бұрын
BROOOOOOOOOO YOU ARE SO AWESOME
@dapilagaandrewb.8033
@dapilagaandrewb.8033 12 күн бұрын
Nice tutorial
@jenniferschreuder1148
@jenniferschreuder1148 Жыл бұрын
very clear, thanks
@noir1931
@noir1931 4 ай бұрын
Thanks man
@ForestFolk_
@ForestFolk_ 4 ай бұрын
Great explanation.
@virtualconnect440
@virtualconnect440 5 ай бұрын
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👏👏👏👏👏👏
@airlanggak5391
@airlanggak5391 2 жыл бұрын
very useful!
@yiorgoskatopodis
@yiorgoskatopodis 2 жыл бұрын
Excellent!
@Choko_Mukachina
@Choko_Mukachina 11 ай бұрын
very good video this helps tons
@azizbekrakhimov1885
@azizbekrakhimov1885 3 ай бұрын
Wonderful bro👍
@b.abdelmoumen4905
@b.abdelmoumen4905 10 ай бұрын
very helpful ,bro ;)
@dagim6625
@dagim6625 5 ай бұрын
Thanks,bro!
@dagim6625
@dagim6625 5 ай бұрын
Lessssssgooo
@toyedavies406
@toyedavies406 Жыл бұрын
good one bro
@ghalemkarimoppo8892
@ghalemkarimoppo8892 Жыл бұрын
Thanks, useful knowledge
@vaishakr3840
@vaishakr3840 Жыл бұрын
Tysm ❣️
@Phr8
@Phr8 2 жыл бұрын
Love the outro music
@fravitathomas2141
@fravitathomas2141 Жыл бұрын
Question: how do you set a variable to a persons age And complete it with the statement you have been alive
@davidgetachew8713
@davidgetachew8713 4 ай бұрын
Really good
@biting_1625
@biting_1625 Жыл бұрын
Bro u saved me day before test
@Geedi6
@Geedi6 Ай бұрын
you are great teacher thank you Bro
@msitwana
@msitwana Жыл бұрын
Which editor are using there Bro?
@paulfan7377
@paulfan7377 2 жыл бұрын
Thank you.
@arshamcfr3236
@arshamcfr3236 2 жыл бұрын
Thank you so much
@kuikz6353
@kuikz6353 2 жыл бұрын
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 ?
@basitemad655
@basitemad655 2 жыл бұрын
well done bro
@ASHUTOSH-mu7cs
@ASHUTOSH-mu7cs 2 жыл бұрын
brocode=("thanku") >>> print(brocode) thanku
@evang2496
@evang2496 3 жыл бұрын
Hi, can you help with coding for "while"looping?
@fzc.
@fzc. Жыл бұрын
thank you very much
@diegoparra5278
@diegoparra5278 Жыл бұрын
Thank you
@headlesshair1353
@headlesshair1353 2 жыл бұрын
Ty
@globalfinancetrading
@globalfinancetrading 8 ай бұрын
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.
@nyiaung4963
@nyiaung4963 2 ай бұрын
very helpful for my study
@zionprayehousekolkata5774
@zionprayehousekolkata5774 3 ай бұрын
nice explaning
@OffStandard
@OffStandard 11 ай бұрын
Thanks I finally got rid of my homework
@mayowaoluwadare9343
@mayowaoluwadare9343 Жыл бұрын
thank you
@Xcarbo
@Xcarbo 2 жыл бұрын
you are great
@ucbereket719
@ucbereket719 Жыл бұрын
Wow thanks
@mohammadabuabdun9896
@mohammadabuabdun9896 4 ай бұрын
amazing amazing amazing thank you
@Crimson_Avant
@Crimson_Avant 9 ай бұрын
liked👍, subscribed✅ and i am now a fellow BRO
Жыл бұрын
Thanks bro
@Godxxillaa
@Godxxillaa 3 ай бұрын
Thanks Bro
@TrusteestDesiChhora
@TrusteestDesiChhora 9 ай бұрын
Very nice sir ❤😊
@thorcoder1
@thorcoder1 3 жыл бұрын
Thanks sir ji👍👍👍
@kemann3815
@kemann3815 2 жыл бұрын
Lovely
@mahtashan6586
@mahtashan6586 Жыл бұрын
bro code for ever
@huntermelodia2336
@huntermelodia2336 Жыл бұрын
Nice.... thanks
@imadelkihal4954
@imadelkihal4954 Жыл бұрын
thankk uuu
@syflix4990
@syflix4990 Жыл бұрын
my man is taller than our garden tree
@MilosStevanovic1
@MilosStevanovic1 3 жыл бұрын
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?
@sammie1565
@sammie1565 3 жыл бұрын
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
@fyuse1232
@fyuse1232 2 жыл бұрын
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.
@oximas-oe9vf
@oximas-oe9vf Жыл бұрын
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
@davelaff73
@davelaff73 3 жыл бұрын
Nice.
@martinmartinez3202
@martinmartinez3202 Жыл бұрын
commenting and subscribed
@hristo4010
@hristo4010 Жыл бұрын
thanks
@floatingcloud5955
@floatingcloud5955 Жыл бұрын
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?
@user-sc9wz7jz5e
@user-sc9wz7jz5e 3 ай бұрын
Thanks
@august5654
@august5654 6 ай бұрын
nice
@alinasophhh
@alinasophhh 6 ай бұрын
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
@N3crvmEdits
@N3crvmEdits 8 ай бұрын
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(">")
@pershiyacraft3603
@pershiyacraft3603 2 жыл бұрын
thx
@sanuratennakoon7979
@sanuratennakoon7979 Жыл бұрын
from what software are you opening python?. Cause when I type this code in W3School web it doesn't work.
@armintech000
@armintech000 Жыл бұрын
6:09 bro u just smashed the Enter button
@isaacpaikkatt267
@isaacpaikkatt267 2 жыл бұрын
cool
@vinncyclopedia3207
@vinncyclopedia3207 Жыл бұрын
2:17, instead of print("Hello "+name) can you do print(f"ur name is {Name}")
@hadisdsdd3713
@hadisdsdd3713 7 ай бұрын
Just my question is how to write the equal sign ( = ) cause I don't have it on my keyboard
@front331
@front331 23 күн бұрын
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.
Python variables ✘
12:17
Bro Code
Рет қаралды 64 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 269 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 61 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 25 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 25 МЛН
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 406 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 400 М.
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Bro Code
Рет қаралды 69 М.
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 383 М.
Python for Beginners - Learn Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 17 МЛН
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 317 М.
Learn Python With This ONE Project!
55:04
Tech With Tim
Рет қаралды 1,6 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 12 МЛН
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 274 М.
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1,1 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,3 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,4 МЛН