Тёмный

Python user input ⌨️ 

Bro Code
Подписаться 2,2 млн
Просмотров 251 тыс.
50% 1

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

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 246   
@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 2 года назад
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.
@wrightworld4556
@wrightworld4556 9 месяцев назад
Your explanations are the clearest I've seen. Thank you, Bro.
@ASHUTOSH-mu7cs
@ASHUTOSH-mu7cs 2 года назад
brocode=("thanku") >>> print(brocode) thanku
@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
@darrendavies5704
@darrendavies5704 Год назад
Broer, bedankt! Je doet het echt goed man👍👍👍
@AmogelangMoenyane
@AmogelangMoenyane Год назад
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!!
@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!!!!!
@Toxicbeing8750
@Toxicbeing8750 2 месяца назад
the way you teach is top notch
@virtualconnect440
@virtualconnect440 9 месяцев назад
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👏👏👏👏👏👏
@dagim6625
@dagim6625 8 месяцев назад
Thanks,bro!
@dagim6625
@dagim6625 8 месяцев назад
Lessssssgooo
@fravitathomas2141
@fravitathomas2141 2 года назад
Question: how do you set a variable to a persons age And complete it with the statement you have been alive
@MsOritz
@MsOritz Год назад
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 4 месяца назад
he was born a giga chad
@mowrldwide3302
@mowrldwide3302 2 года назад
i love this video. thank you i couldnt find a video that explains all of this better
@TehArcy
@TehArcy 3 года назад
made a calculator to calc volume of a cube type object; pretty cool thanks for the tutorials
@BroCodez
@BroCodez 3 года назад
You're welcome! Thanks for watching!
@IShootMeme
@IShootMeme 3 месяца назад
Thanks so much!
@minusplus7891
@minusplus7891 Год назад
THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT
@zinaidaseremet2775
@zinaidaseremet2775 Год назад
THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT 🤩
@JaceMoore1
@JaceMoore1 Год назад
Thank you you’re helping me with my homework appreciate you
@kelleyannbart8348
@kelleyannbart8348 Год назад
Awesome and simple to follow and learn. Thank you bro for the tutorial. So valuable!!🙏👍
@linuso524
@linuso524 2 года назад
THIS REALY HELPED
@patrunks3906
@patrunks3906 4 месяца назад
I love the videos sir, thank you.
@galaxymanharry
@galaxymanharry 22 дня назад
thanks man very helpful
@intenzgamerz4882
@intenzgamerz4882 2 года назад
Thank You dude I was trying a code and it did not work Your tutorial helped me alot thank you
@Sure_Math_Center
@Sure_Math_Center Год назад
Hey! Thank you!
@fycs_101_mustafa9
@fycs_101_mustafa9 2 года назад
Thanks for the course
@aebordones00
@aebordones00 Год назад
👍👍👍👍👍 The best tutorial!
@PRAN-kx1ml
@PRAN-kx1ml 3 года назад
amazing video. i like the way you teach each and every concept
@rashidchibvuri2036
@rashidchibvuri2036 4 дня назад
NICE BRO, THANK YOU.
@vinncyclopedia3207
@vinncyclopedia3207 Год назад
2:17, instead of print("Hello "+name) can you do print(f"ur name is {Name}")
@icebladeplays
@icebladeplays 3 года назад
Thank you. This is very helpful! :)
@SonceraAdams
@SonceraAdams 2 месяца назад
i love you, bro code.
@PekkaNetwork
@PekkaNetwork 2 года назад
Thank you Bro I just learnt QBasic now starting to learn Python then going on to httml
@jaysonabayan3279
@jaysonabayan3279 3 года назад
BROOOOOOOOOO YOU ARE SO AWESOME
@ralphibezim352
@ralphibezim352 2 года назад
Great vid Bro
@juancaca1993
@juancaca1993 2 года назад
Subscribed bro : D
@radinahmadi2211
@radinahmadi2211 7 месяцев назад
Thank you , for this divine video
@bluekiddo9969
@bluekiddo9969 2 года назад
as always bro never dissapoints us
@sheydaau
@sheydaau 3 года назад
Broooooo good job!!💛💛💛
@OffStandard
@OffStandard Год назад
Thanks I finally got rid of my homework
@Geedi6
@Geedi6 5 месяцев назад
you are great teacher thank you Bro
@jackjshorts
@jackjshorts 2 года назад
Really cool! Used it to make a madlib!
@dapilagaandrewb.8033
@dapilagaandrewb.8033 4 месяца назад
Nice tutorial
@elmathiaspe
@elmathiaspe 21 день назад
great tutorial
@ForestFolk_
@ForestFolk_ 8 месяцев назад
Great explanation.
@nyiaung4963
@nyiaung4963 6 месяцев назад
very helpful for my study
@minhazrahman7463
@minhazrahman7463 2 года назад
You are Awesome Bro 🤙
@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 2 года назад
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
@WarriorNinjaMaster
@WarriorNinjaMaster Год назад
Thank you bro I love it
@MujinMuka
@MujinMuka Год назад
very good video this helps tons
@armintech000
@armintech000 2 года назад
6:09 bro u just smashed the Enter button
@globalfinancetrading
@globalfinancetrading Год назад
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.
@barristar9338
@barristar9338 2 года назад
Thanks, this is so easy to understand
@ghalemkarimoppo8892
@ghalemkarimoppo8892 Год назад
Thanks, useful knowledge
@Mr_Assierne
@Mr_Assierne 3 года назад
name = input("What is your name?: ") age = int(input("How old are you?: ")) height = float(input("How tall are you?: "))
@alinasophhh
@alinasophhh 10 месяцев назад
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
@sureshkrishna3915
@sureshkrishna3915 3 года назад
Awesome dude
@azizbekrakhimov1885
@azizbekrakhimov1885 7 месяцев назад
Wonderful bro👍
@SuhasiniL
@SuhasiniL 8 месяцев назад
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.
@b.abdelmoumen4905
@b.abdelmoumen4905 Год назад
very helpful ,bro ;)
@thorcoder1
@thorcoder1 3 года назад
Thanks sir ji👍👍👍
@N3crvmEdits
@N3crvmEdits Год назад
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(">")
@TrusteestDesiChhora
@TrusteestDesiChhora Год назад
Very nice sir ❤😊
@youtalemjid8002
@youtalemjid8002 5 дней назад
What is the difference between input and print please
@נעמהבןדוד
@נעמהבןדוד 3 месяца назад
bro that's was one of the easiest ladders I've seen
@Crimson_Avant
@Crimson_Avant Год назад
liked👍, subscribed✅ and i am now a fellow BRO
@Yurhyhffhh
@Yurhyhffhh Месяц назад
How come I can find a RU-vid video on this specific issue and not any of the other incredibly specific issues I'm dealing with?
@RyanNaser-t1p
@RyanNaser-t1p 2 месяца назад
so good you should do a ocr coure it for gcse
@DipMaity-j9i
@DipMaity-j9i Месяц назад
F=Thanks G=input(F+"Thanks")
@DipMaity-j9i
@DipMaity-j9i Месяц назад
Print=G ThanksThanks
@jenniferschreuder1148
@jenniferschreuder1148 2 года назад
very clear, thanks
@Phr8
@Phr8 3 года назад
Love the outro music
@GuadelupeCooks
@GuadelupeCooks Год назад
Ok. I am so dumb...But I have questions. 1. How do you run the file at the bottom?
@noir1931
@noir1931 8 месяцев назад
Thanks man
@biting_1625
@biting_1625 Год назад
Bro u saved me day before test
@Primitive_Code
@Primitive_Code 4 месяца назад
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.
@yiorgoskatopodis
@yiorgoskatopodis 2 года назад
Excellent!
@davidgetachew8713
@davidgetachew8713 8 месяцев назад
Really good
@msitwana
@msitwana Год назад
Which editor are using there Bro?
@zionprayehousekolkata5774
@zionprayehousekolkata5774 7 месяцев назад
nice explaning
@toyedavies406
@toyedavies406 2 года назад
good one bro
@nqk_0662
@nqk_0662 2 года назад
Hey dude how do I show the vaule of something? Like Discount=(10*30) How do I display discount amount? That is 300
@JacksonNorman-e7e
@JacksonNorman-e7e 2 месяца назад
I learn so much
@arshamcfr3236
@arshamcfr3236 2 года назад
Thank you so much
@VassiliosBantourakis
@VassiliosBantourakis 2 года назад
Awesome!
@bashitam
@bashitam Месяц назад
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?
@Forxa1260
@Forxa1260 9 месяцев назад
This is what I got for the Mad Libs: Today I went to a abandoned zoo In an exhibit, I saw Tim Apple Tim Apple was Crazy and falling I was filing his taxes
@TimothyHurley-p7z
@TimothyHurley-p7z 11 месяцев назад
thank you very much
@mohammadabuabdun9896
@mohammadabuabdun9896 8 месяцев назад
amazing amazing amazing thank you
@paulfan7377
@paulfan7377 2 года назад
Thank you.
@sanuratennakoon7979
@sanuratennakoon7979 Год назад
from what software are you opening python?. Cause when I type this code in W3School web it doesn't work.
@vaishakr3840
@vaishakr3840 2 года назад
Tysm ❣️
@RishonRidish
@RishonRidish Месяц назад
Nice 👍 🙂
@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 ?
@uzukealucard6158
@uzukealucard6158 2 года назад
Can U make a vid creating this program and use GUI with it?
@huntermelodia2336
@huntermelodia2336 2 года назад
Nice.... thanks
@thous9009
@thous9009 Год назад
What is the code if i want the user to find the position of a word in paragraph and this paragraph is in a variable like .. X= """ Bla bla bla bla , hello world """" Now i want the user to input to know the word " hello " what its position
@syflix4990
@syflix4990 2 года назад
my man is taller than our garden tree
@headlesshair1353
@headlesshair1353 2 года назад
Ty
Далее
Functions in Python are easy 📞
10:38
Просмотров 530 тыс.
Please Master These 10 Python Functions…
22:17
Просмотров 193 тыс.
5 Useful F-String Tricks In Python
10:02
Просмотров 320 тыс.
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Просмотров 227 тыс.
Python dictionaries are easy 📙
8:06
Просмотров 244 тыс.
Python Tutorial: if __name__ == '__main__'
8:43
Просмотров 2 млн
10 Important Python Concepts In 20 Minutes
18:49
Просмотров 230 тыс.
Python Decorators in 15 Minutes
15:14
Просмотров 448 тыс.