#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))
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
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")
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.
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.
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 ")
#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...
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)
Tip: In boolean true and fals must be spelled with the first letter in caps ( True , False)
thank you
Really a great tutorial, its so easy to understand the basics.
Bro Why Haven't I Seen This Channel Before It's A Great Channel
very nice!!
Your way of explaining things is really great... Thank You...
Thanks for explaining
thank you for the explanaion
Love u bro u very good UA-camr
Great video
This is my comment in order to keep this channel running 👍
tnx for this video ❤
Thank You Bro!
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
you are really bro for us
Thank you very much.
thanks a bunch for putting this all together!! love the playlist making it more helpful!!
You are very underrated keep going
Easy to understand
🙌🙌
Awesome!
Thanks
The way you explain that you are a human is like what AI would do.
Thank you very much
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.
nice!
so good
Not good at English but can study well thanks your best teaching
f inh8gngnr
rrnorg
grnorngr
rnu0grnrrnur0norrnror
rpngr
rnuprr
upg
rrnup
rrnogruo
eno
Thanks for learning me Python.
Thanks bro u helped for my exam thank you so much
Best python videos on UA-cam so far
iohronpn
rb4or4
rn44ri7bqob4
bo49yn4t
44typ4nt4t
t4bpyh4t
p4n48ytnpy
tnpbo7ton
nrpo89n5
'nt
ntup5
ntmunupr
tgmutntuot
tnpt
You simplified it in a great way! thanks!
r u professor of some university? u teach really good. from which country r u?
djbcjbebe
behbe
bue e
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.
Your way of explaining things is really great
I like python it's easy
nice
Cheers man, great tutorial
sucha a great content 👌🏼
Thank you pro
Thank you for sharing!
Thanks bro
Thanks, Bro
Thanks.
thanks,your tutorial is very useful to understand
Excellent!
Thank you
dwjbkw
dbbd'wnudbi
vqikb
woq
qnw
wgbd d
odn o
93 yhdt9889e y9
9y83o
jowodnwpdq
w u0q
print("your the best bro")
you are the best
each and every fukin concpt is clear brooooooooooooooo
Thanks for guides!
cool
I learnt a lot tonight. Thanks a lot
After learn your 8 hours JS tutorial to the 3 hours,I became a fellow!
Very good lesson !
Thanks for the help!
thanks mate
bro
noice
Are you a human:
Doubt!
Thanks for the video AI bro
lol
great tutorial
Thank You 😊
So amazing
What book do you recommend me to deep more on each topics?
thanks for providing the code
habibi
😄😄
thnx it helps a lot
👍
awesome!!!!!
9:29 , now we know how tall Bro Code is
Super
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"
23/JUL/22 7:43pm i was here
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
")
sir you are op
Thanks bri
thanks!
Is good
thanks
hm even though I put true is still says false when I ask if I'm human O.o??? spooky
Commenting just so that this video bursts, hopefully
print("Thank you Bro ")
Perfectly normal height.. 250.5 cm... I reckon im just too abnormally small at 170
please bro code tell me is there any extensions for chrome to run python codes or an extension which has terminal?
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
HELLO BRO
Bro is a legend
If you was a girl, indeed i swear must have proposed you.😂.. thanks thanks thanks alot brother .. ❤❤❤❤❤❤
age = 4
print("your age is", age)
your age is 4
the right yk haha
Thank you for your support
Hi
perfect speed 1.25
finally i feel like i learned something, thank you :D
tgha x
please use ,
print("down below")