Python variables ✘
Вставка
- Опубліковано 11 чер 2024
- Python variables tutorial example explained
#python #variables #tutorial
#variable = a container for a value. Behaves as the value that it contains
#string = a series of characters
first_name = "Bro"
last_name = "Code"
full_name = first_name +" "+ last_name
print("Hello "+full_name)
print(type(first_name))
#int = a whole integer
age = 21
age += 1
print("Your age is: "+str(age))
print(type(age))
#float = a decimal number
height = 250.5
print("Your height is: "+str(height)+"cm")
print(type(height))
#boolean = True or False
human = True
print("Are you a human: "+str(human))
print(type(human))
------------------------------
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...
------------------------------ - Наука та технологія
#variable = a container for a value. Behaves as the value that it contains
#string = a series of characters
first_name = "Bro"
last_name = "Code"
full_name = first_name +" "+ last_name
print("Hello "+full_name)
# print(type(first_name))
#int = a whole integer
age = 21
age += 1
print("Your age is: "+str(age))
# print(type(age))
#float = a decimal number
height = 250.5
print("Your height is: "+str(height)+"cm")
# print(type(height))
#boolean = True or False
human = True
print("Are you a human: "+str(human))
# print(type(human))
super
Oh no i cant copy it
I am not sure if lists are considered a python variable type. I am new to python so...
Really a great tutorial, its so easy to understand the basics.
Your way of explaining things is really great... Thank You...
Tip: In boolean true and fals must be spelled with the first letter in caps ( True , False)
thank you
instead of doing
print("hello "+name)
do this
print("hello",name)
no need to give space after hello, just replace + with , and you're good to go.
correct me if I am wrong
it's right
name = "Piko"
print(f"Hello {name}")
I could be wrong but I think doing print("hello",name) takes up an extra argument as opposed to print("hello"+name)
You could also do print("Hello "+(first_name)+" "+last_name)
thanks a bunch for putting this all together!! love the playlist making it more helpful!!
You simplified it in a great way! thanks!
Your way of explaining things is really great
very nice!!
Thanks for guides!
thanks,your tutorial is very useful to understand
Bro Why Haven't I Seen This Channel Before It's A Great Channel
sucha a great content 👌🏼
Cheers man, great tutorial
Love u bro u very good UA-camr
thank you for the explanaion
Thanks for learning me Python.
Very good lesson !
Thanks for explaining
Thank you for sharing!
I learnt a lot tonight. Thanks a lot
tnx for this video ❤
Great video
Awesome!
Thanks for the help!
Thank you very much.
Thank You Bro!
you are really bro for us
This is my comment in order to keep this channel running 👍
Excellent!
great tutorial
You are very underrated keep going
Thank you very much
Easy to understand
So amazing
nice!
Thanks bro u helped for my exam thank you so much
so good
Thanks
Best python videos on UA-cam so far
iohronpn
rb4or4
rn44ri7bqob4
bo49yn4t
44typ4nt4t
t4bpyh4t
p4n48ytnpy
tnpbo7ton
nrpo89n5
'nt
ntup5
ntmunupr
tgmutntuot
tnpt
thanks for providing the code
Thank You 😊
Thanks, Bro
awesome!!!!!
Thanks bro
thanks bro
Thank you pro
After learn your 8 hours JS tutorial to the 3 hours,I became a fellow!
Thanks.
thank you Bro! 🙏
Thanks bri
thanks mate
Nice
thnx it helps a lot
Many thanks Bro for your work as I wrote in the main "episode, you translate Python issues best on YT. Hope you understand me because my English is rather poor. Thank you
nice
🙌🙌
Hello Bro Code, I'm messaging not actually to purchase anything but to let you know that I enjoy learning from you. I wish you can mentor me to be a programmer just like you Bro. I have been trying to reach you from all the comments section in your UA-cam videos. Please reply as you like a special gift from God to help me in programming. I have spend like 6 months trying to find a tutor that can help me be a programmer until I accidentally found you. Thanks man for every videos out there on UA-cam. Once again thank you very much for your efforts and resources. Love from Sierra Leone, West Africa.
cool
thanks!
The way you explain that you are a human is like what AI would do.
thanks
Super
sir you are op
Thank you
dwjbkw
dbbd'wnudbi
vqikb
woq
qnw
wgbd d
odn o
93 yhdt9889e y9
9y83o
jowodnwpdq
w u0q
What book do you recommend me to deep more on each topics?
Are you a human:
Doubt!
Thanks for the video AI bro
lol
Not good at English but can study well thanks your best teaching
f inh8gngnr
rrnorg
grnorngr
rnu0grnrrnur0norrnror
rpngr
rnuprr
upg
rrnup
rrnogruo
eno
you are the best
each and every fukin concpt is clear brooooooooooooooo
I like python it's easy
Is good
Commenting just so that this video bursts, hopefully
noice
habibi
1:30 in addition to single and double quote delimiters ('text' and "text"), you may use triple single and double quotes as well: '''text''' and """text""".
A thing these two delimiters have that single-character delimiters don't have is, they retain lines within the string, unlike the first, where putting those in different lines:
my_text = 'text'
'in a new line'
is converted by Python to simply concatenated strings:
'textin a new line', while:
my_text = '''text
in a new line'''
stores the string, which when printed looks like:
text
in a new line
Of course, you can always create a string of joined strings separated by a string (new line character in this case): "first" + "
second", or "
".join(["first", "second", "any other string", ...] where it would concatenate the strings inside the list, putting the object in between (a string of "
", i.e., a new line in this case), but that feature is of convenience more than anything.
print("your the best bro")
👍
r u professor of some university? u teach really good. from which country r u?
djbcjbebe
behbe
bue e
bro
9:29 , now we know how tall Bro Code is
😄😄
I tried this;
First_Name = input("What is your first name? ")
Last_Name = input("What is your last name? ")
print("Hello", First_Name +" "+ Last_Name)
age = input("How old are you " + First_Name + "? ")
print("You are " + str(age) + " years old")
height = input("What is your height in cm? ")
print("Your height is " + str(height) + "cm")
Why do you need to type str?
@@prasitsingh6713 because it was an integer and integer can't go with strings
Thank you for your support
Bro is a legend
finally i feel like i learned something, thank you :D
tgha x
23/JUL/22 7:43pm i was here
please bro code tell me is there any extensions for chrome to run python codes or an extension which has terminal?
Hi Bro Code, what code editor do you use???🤔 i really want to know.
PyCharm
I guess that the new patch may have ****ed up everything. I can't do the run thing unless I force it with run... If u know what I mean "bro"
hm even though I put true is still says false when I ask if I'm human O.o??? spooky
I tried to pull off a huge variable and see if I can get it done, which I did !!
print("My height is " +str (height)) +print("Oh then I'm taller than you
")
print("Thank you Bro ")
HELLO BRO
the right yk haha
Perfectly normal height.. 250.5 cm... I reckon im just too abnormally small at 170
If you was a girl, indeed i swear must have proposed you.😂.. thanks thanks thanks alot brother .. ❤❤❤❤❤❤
Hi
print("down below")
IK you are giga chad and you are probably taller then 90% of us but 250 cm is not normal. 8:04. lol but seriously great video