Python user input ⌨️

preview_player
Показать описание
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")

––––––––––––––––––––––––––––––
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

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")

BroCodez
Автор

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!

jakestallone
Автор

It is unbelievably easy to follow this series - time goes quick and the way he teaches is top notch

laurenceseberini
Автор

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.

realskater
Автор

Your explanations are the clearest I've seen. Thank you, Bro.

wrightworld
Автор

i love this video. thank you i couldnt find a video that explains all of this better

mowrldwide
Автор

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

mmukmqc
Автор

Broer, bedankt! Je doet het echt goed man👍👍👍

darrendavies
Автор

brocode=("thanku")
>>> print(brocode)
thanku

ASHUTOSH-mucs
Автор

amazing video. i like the way you teach each and every concept

PRAN-kxml
Автор

THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT

minusplus
Автор

Awesome and simple to follow and learn. Thank you bro for the tutorial. So valuable!!🙏👍

kelleyannbart
Автор

THANK YOU SO MUCH FOR THIS VIDEO! IT HELPED ME A LOT 🤩

zinaidaseremet
Автор

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

kaiiemsawat
Автор

- 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

Satoshi
Автор

Really cool! Used it to make a madlib!

jackjshorts
Автор

Thanks, this is so easy to understand

barristar
Автор

Thank you you’re helping me with my homework appreciate you

JaceMoore
Автор

made a calculator to calc volume of a cube type object; pretty cool thanks for the tutorials

TehArcy
Автор

Thank you so much Bro Code. what you just taught me is simply amazing, you truly have a gift. Thank you once again

MsOritz