@SuprMrDudeGuy you are lucky you got started early, if i was you i would dedicate all my spare time to programming and to developing a personal project, that way by the age of 18 you might be a millionaire if you develope the right idea and work with other people who also have the knowledge, ambition and interest to develope something great
@AnnaMicrosoft i wish when i was his age an old unknown guy from internet would have told me that, if that would have happen maybe i would not be flipping burgers for a living now
I've learned more about python from watching your tutorials in the last 30 minutes than from my college professor for the past 5 weeks. Thanks for the clear and easy to understand tutorials.
% = "String formatting operator." It uses a, "String w/ formatting characters," + the data to be formatted, separated by the %. Since the letter 'd' is the, "Formatting characters for integers' we use "%d" in order to insert a integer into a string.
In Python 3, the conversion isn't necessary; integers can be used with strings in 3.x. num = 18 num + 15 33 Integers working correctly. Now: print("Matt will be", num, "in two months.") Matt will be 18 in two months. Converting to make sure they're actually integers: num = int(num) print("Matt will be", num, "in 2 months.") Matt will be 18 in 2 months.
hey man,just wanted to say that before your vids I knew nothing about programming or python,Im taking my OO programming class in about 2 months and youve explained some of this material for me and made it a much easier transition,awesome series!
In the new version of Python, back ticks are removed, you must use repr() instead to get the same result. You must also put parentheses around the print function.
Do the community a favor and keep this comment alive, people who are using the newer, and better version of python will have problems with this tutorial unless people tell the differences. Thumbs up to keep this alive.
Remember: Bucky is always right....even when you think he's not!!
Using Python 2.7 here are some print statements that emphasize what Bucky states. (The \n sequence is the newline char. and it is not the comma. The comma is used to separate parameters).
age = 32
print "\n\nHello, Bucky is", age, " years old"
print "\n\nHello, Bucky is " + repr(age) + " years old"
print "\n\nHello, Bucky is " + str(age) + " years old"
age2 = str(age)
print "\n\nHello, Bucky is " + age2 + " years old"
@basketballdude138 I see what you mean :P I think the same way through most of these examples, but I'm sure you know how this could be applied to something else when you write a program xD
Thank you for creating these tutorials for those of us who are utterly clueless about computer 'speak'. I am following along and haven't felt the need to give up and throw myself off the nearest tall building! A very refreshing and generous way of teaching.
Thank you for creating these tutorials for those of us who are utterly clueless about computer 'speak'. I am following along and haven't felt the need to give up and throw myself off the nearest tall building! A very refreshing and generous way of teaching.
@pavo11111 Dude this doesn't convert the value stored in "num" to string.Rather it just shows the value in "num" in a new line.The comma operator is used for new line.
@Tott3LoL umm not if your trying to learn programming dumb ass...
your saying you are going to learn programming from him when all the code he tries to teach you gives you syntax errors? Your telling me someone new to this language will understand a way how to get around this?
@sailornaruto39 lol sorry sort of had a bad day when I posted that XD
Your right about getting around stuff, but its also good to remember that newer doesn't necessarily mean better (Windows XP/Windows Vista.) Especially when someones trying to follow along with the video.
@D4gI3 I tought solving problems was a part of programming, guess i got it wrong then :( I'm totaly new, started the day i wrote that and found a way around so i wounder whos a dumb ass ;o
I'm not acting smart, I just figured 1 was faster on my own.
I also figured 2 from watching the video. I figured out what he was getting to before he said it and went "oooohhh I get it" and typed num="18" and I got it right. But then he started typing str(18) and I was like WTF? But it is the same, just "18" is faster. Just a tip. I wouldn't have figured this without this dude.
@KilianMorrison I was a bit disturbed by that too , meaning either she was an early bloomer or Bucky was adopted , i kinda hope it was the second one because 32-18- .75= pedobear seal of approval.
@KilianMorrison I was a bit disturbed by that too , meaning either she was an early bloomer or Bucky was adopted , i kinda hope it was the second one because 32-18- .75= just wrong :(
yo bucky you the man!!!!!!!!!!!!!!!!
MAXAMUST 4 days ago
Lol, most people watching these are in college or university, and I understand Python easily
(I'm in grade six)
SuprMrDudeGuy 2 weeks ago in playlist Python Programming Tutorials
@SuprMrDudeGuy you are lucky you got started early, if i was you i would dedicate all my spare time to programming and to developing a personal project, that way by the age of 18 you might be a millionaire if you develope the right idea and work with other people who also have the knowledge, ambition and interest to develope something great
suicidebombadil 6 days ago
@suicidebombadil great lecture, proffessor. lol
AnnaMicrosoft 6 days ago
@AnnaMicrosoft i wish when i was his age an old unknown guy from internet would have told me that, if that would have happen maybe i would not be flipping burgers for a living now
suicidebombadil 5 days ago
@suicidebombadil you have no one to blame other then yourself
but it's not too late to do something with ur life..
AnnaMicrosoft 4 days ago
@AnnaMicrosoft true, but if you ever go to mcdonalds make sure im not the one cooking cause i will spit on your burgers biaaaaatch!
suicidebombadil 4 days ago
I've learned more about python from watching your tutorials in the last 30 minutes than from my college professor for the past 5 weeks. Thanks for the clear and easy to understand tutorials.
PsychoBoyJack11 3 weeks ago
@PsychoBoyJack11 same here bro
hillmeu 1 week ago
Backticks don't seem to be working in Python 3.
drracketboy 3 weeks ago
num = `12` also converts the number to a string
retrogamingcables 3 weeks ago in playlist Python Programming Tutorials
nice biff dude
MJSNOVOTNY 3 weeks ago in playlist Python Programming Tutorials
BACK TITS!
sdmac21 3 weeks ago in playlist Python Programming Tutorials
back tits hehe
Henrikko123 1 month ago in playlist Python Programming Tutorials
Here's another way to join strings and integers:
num = 18
name = 'Bucky is %d' % (num)
print name
Bucky is 18
-Try it :).
% = "String formatting operator." It uses a, "String w/ formatting characters," + the data to be formatted, separated by the %. Since the letter 'd' is the, "Formatting characters for integers' we use "%d" in order to insert a integer into a string.
Hope I explained it alright, gl :)
xRockDaFunkx 1 month ago 2
OMG MOVE YOUR CUROSRRRRRRRRRRRR
munke2 1 month ago
back tits
b3nj4mmin 1 month ago in playlist Python Tutorial thenewboston
You would have to write at least 5 lines in java to get the same output, i dont know if that is good or bad
thaappaya 1 month ago
here's a fun game: go from tutorial 1 to this one and watch the views decrease (dramatically)!! lol and it's only tutorial 7
Bahfreakee 1 month ago
Looks like back ticks doesnt work for 3.2
supersushi269 1 month ago
why can people hate him! He's AMAZING at explaining this! He dumb's it down without making us feel dumb!
Imrsk007 2 months ago in playlist Python Programming Tutorials 4
numbers + letters = Algebra...duh
funnyNickname 2 months ago
>>> print ("bucky is" +num)
You need to bracket everything in python 3.0+
Hope it helps :)
BKsMassive 2 months ago 4
SomeAnonymousDude 2 months ago 2
@SomeAnonymousDude I forgot Youtube comments don't space correctly. Sorry about that jumbled mess.
SomeAnonymousDude 2 months ago
All I heard was backtits then something about his mom. What are you doing in your freetime?!?
SuicidalLaughter 2 months ago
thanx mate learn alt man
reshad009 3 months ago
backticks don't work in python 3
MEhagar 3 months ago 2
@MEhagar why use python 3?
Pflanzenkuschler 3 months ago
>>> num2 - num
14
>>> print "ewww"
ewww
xLDH1109x 3 months ago in playlist More videos from thenewboston 21
This has been flagged as spam show
Oh wait nevermind
ArswawWorldofWarcraf 3 months ago in playlist Python Programming Tutorials
OMG how do you write these "bactics"? I cannot find them on the keyboard.
ArswawWorldofWarcraf 3 months ago in playlist Python Programming Tutorials
2:36 did he just say back tits? lolololololololololol
MuchachoPinoy 3 months ago
hey man,just wanted to say that before your vids I knew nothing about programming or python,Im taking my OO programming class in about 2 months and youve explained some of this material for me and made it a much easier transition,awesome series!
jmassey74 3 months ago in playlist Python Tutorials
Why Dont You Just Go Like This:
num = 18
print "Bucky Is ", num
Not This
num = str(18)
print "Bucky Is " + num
??
iyanzakai 4 months ago in playlist Python Programming Tutorials
@iyanzakai He is teaching strings, not teaching you how to put "Bucky is 18".
PMclaurin10 3 months ago
Back Tits
Hell Yah Baby
alking0badr 4 months ago
Back Tits
jmac217x 4 months ago
num = 18
print "bucky is", num
dylanXdisaster 4 months ago in playlist Python Programming Tutorials
I figured out on my own that you can do something like:
me+" is "+ str(age)
So you don't have to make the int a string if your going to just print it once.
TheXRealXBrapp 4 months ago
what about simply doing num = "18"?
videodaniel8945 4 months ago
@videodaniel8945 It works, I tried
RoyceDima 4 months ago
"My mom is ", 32
My mom is ", age
sndmax 4 months ago
why dont you just put in "bucky is 18" thats what i did and it worked
thbeserk 5 months ago
@thbeserk because not everyone is 18...
if you say
x=raw_input("Your name is: ")
y=raw_input("Your age is: ")
print"Your name is"+ x
print"Your age is"+ y
You're not gonna know that that person is 18 or whatever.
CrazyShooter199 5 months ago
Bucky, do you have a bitcoin address? I would like to send some donations...
AbusedT00L 5 months ago
Hey Guys ! ! ! You hate Bucky for what reason !
He is just trying to help begginers like me and all who like the videos . So any one og you haters , FUCK YOUR SELF , AND GET A LIFE !
Jo3HoXhA2PaC 5 months ago
print(("my mom is "),num2)
for 3.2
ddwag1 5 months ago in playlist More videos from thenewboston
Bat-Tits!
TheMountainYou 5 months ago in playlist Python Programming Tutorials
Mine doesn't work.. im using 3.2. I do print ("Peter is"), num and it gives me
Peter is (None, '18')
ZzZeroRespectzZ 6 months ago
"Convert crap to strings" - Bucky Roberts
DavidJapanese 6 months ago
This has been flagged as spam show
In the new version of Python, back ticks are removed, you must use repr() instead to get the same result. You must also put parentheses around the print function.
Do the community a favor and keep this comment alive, people who are using the newer, and better version of python will have problems with this tutorial unless people tell the differences. Thumbs up to keep this alive.
VselwynV 6 months ago
Made a simple program where first it will asks what your moms age is. Then whatever you enter it will say "Your mom is.(the number you entered)"
daredevilpwn 6 months ago
@EpilepticElbow 3.1 has a different syntax from any python version 2.x.x
gamewizzardd 6 months ago
Backtits?
RoarOfVictory 6 months ago
crap ---> strings
darkechosx 6 months ago
I recommend taking every first word he entered in each line and doing help(word)
This gives alot more information and all the ways that you can use that word. At least t would give you a starting point to be creative.
btyler4606 6 months ago
num1 = 15
print "num1" + `num1`
num115
btyler4606 6 months ago
print "\"Hey now\""
btyler4606 6 months ago
BACTITS LOL
curryeater259 6 months ago
What? No "Bam!" comments?
OK then:
Once you enter a string, Bam!
intensechap 6 months ago
Bucky's mom gave birth to bucky at 14?!?
I3L4NK 6 months ago 2
I wanna convert crap into strings.
ScorpioKing1990 7 months ago
or you would type 'Bucky is", num does the same but also handles integers
phroggyy 7 months ago
@phroggyy print ('bucky is', num)
phroggyy 7 months ago
Remember: Bucky is always right....even when you think he's not!!
Using Python 2.7 here are some print statements that emphasize what Bucky states. (The \n sequence is the newline char. and it is not the comma. The comma is used to separate parameters).
age = 32
print "\n\nHello, Bucky is", age, " years old"
print "\n\nHello, Bucky is " + repr(age) + " years old"
print "\n\nHello, Bucky is " + str(age) + " years old"
age2 = str(age)
print "\n\nHello, Bucky is " + age2 + " years old"
david3165 7 months ago 2
print "buck is 18"
that works even better
(fyi im not dumb so dont say but blah blah blah...)
basketballdude138 7 months ago
@basketballdude138 I see what you mean :P I think the same way through most of these examples, but I'm sure you know how this could be applied to something else when you write a program xD
CaptainLulzify 7 months ago
@CaptainLulzify yah i know i do alot of coding in different languages so i can see it
basketballdude138 7 months ago
you're 18 and your mom is only 32?
gioravered 7 months ago 68
@gioravered hes 24
TheWhatization 4 months ago
This has been flagged as spam show
@gioravered so she got pregnant 14 years old???? WHAT THE FUCK????
Petrinaikos 3 months ago
Can someone please help me?
x = Jason
Why cant I go,
print "so your name is x?"
it doesn't come up with "so your name is jason?"
HELP PLEASE
DarkCytomation 7 months ago
@DarkCytomation hi, since you want to print a string, you should save it in double quotes to tell the program that it is a string.
the correct program is :
x = "Jason"
print "so your name is ", x , " ? "
enjoy..
rjkale1 7 months ago
@rjkale1 Thanks , is there a way to say "your name is x , correct?" because if I brake the code and make it
print ("Your name is " + x ",correct?") , my program doesn't run correctly.
DarkCytomation 7 months ago
@DarkCytomation What you're doing is telling Python to add x, which equals Jason, when it doesn't work like that. What you want to do is say:
x = "Jason"
print ("Your name is",x,", is that correct?")
Then, it will output:
>>>
Your name is Jason , is that correct?
>>>
SelcouthZach 7 months ago
@SelcouthZach thanks , it works .
DarkCytomation 7 months ago
back tits
Gam3rzRUs 7 months ago
Back tits............hahaha
digitals2006 7 months ago
Your mom was 14 when she gave birth... i sincerely hope you don't have an older sibling.
Br0wnDAwG 7 months ago
bucky is awesome
:)
nice tutorials
401randomvideos 7 months ago
your mom is 32 ?? xD haha
TheNeweN24 8 months ago
32 - 18 =.... :0
zorgelo1 8 months ago in playlist New Boston Python Tutorial
Back tits :)
zorgelo1 8 months ago in playlist New Boston Python Tutorial 2
Just started learning Python after using C++ for years and type casting seems to be more implicit, but much easier.
KorHenri 8 months ago
Rather than doing str(18) on the variable, use it when you're printing.
print "bucky is" + str(num)
T1melimit 8 months ago
At 2:30 I just put num = "18"
ModdingNation1 8 months ago 2
backtits?
mw2montagifier 8 months ago
num = 18
print ('Bucky is %s' % num)
mwnorrie 8 months ago
The best parts of these tutorials are when Buckys like "hold on...let me gather my thoughts" lol
Bcentralbeast 8 months ago
Convert crap to strings. That's how you get a Sh*tty program. Haha.
BboyRamen698 8 months ago 17
backtits
BloodyRevolution1 8 months ago
back tits?
lol
raph0renzoo 8 months ago
Wait 32-18 = 14 :O
ToweLieProduction 8 months ago
In Python 3.2, you have to put parentheses () around the text and quotes after print, unlike in this version where it's just the quotes.
MisterBaseball200 8 months ago
print "my mom is ", num2
is better but since your teaching strings i guess it makes since LOL
BLACKBINLATIN 8 months ago
Thank you for creating these tutorials for those of us who are utterly clueless about computer 'speak'. I am following along and haven't felt the need to give up and throw myself off the nearest tall building! A very refreshing and generous way of teaching.
Lelly1963 8 months ago
Thank you for creating these tutorials for those of us who are utterly clueless about computer 'speak'. I am following along and haven't felt the need to give up and throw myself off the nearest tall building! A very refreshing and generous way of teaching.
Lelly1963 8 months ago
I want some back tits.....lol jk
theoriginalfatdonkey 8 months ago
you know that the ages he writes might be examples?
NoobieProggy 9 months ago
num=18
print "your",num
works as well in 2.7.1
track4042010 9 months ago
it is 2011 these days the back ticks are just fine !
romanhorol 9 months ago
welcome back to another episode of learn more about bucky,
on last weeks episode we learned his full name stay tuned this week to find out his age!
kyozpsycho 9 months ago
black tits o_o
EvolveYourFuture 9 months ago
ok can someone tell me what's this for ? just typing for fun ?
MisterTNoob 9 months ago
wtf is back tits???
TheBusinessOfJfudh 9 months ago
2:06 "That's not math, that's not English, that's not nothing"
dowerasu 9 months ago
Bubble that was 2 years ago he is 20 and his moms 34
Lordisa1113 10 months ago
You're 18, and your mom is 32? Oh, deary me...
bubbleheadft 10 months ago
i think yuor mom is going to dislike this video,kid...
richardhaw 10 months ago
sooooo... he is 18 and his mom is 32?
that makes a lot of sense :))
loyalmary27 10 months ago
yout can use a comma like this
print "jajdljlkajd" , num
loko95ftp 10 months ago
Show me your back tits!!!
tjkoop2 10 months ago
The first tutorial has the most views and the views slowly go down on the next tutorial. That makes me a saaaad panda....
(Reference from south park.)
NIN1024 11 months ago
@NIN1024 SOUTH PARK FTW
travis199urkul 10 months ago
PLEASE HELP
I have Python 3.0 installed and it's teling me
>>> print "Hi Bucky"
Invalid Syntax
Is the new version different here?
snipaelite247 11 months ago
@snipaelite247 do print ("hello")
LuxrayIsEpic 10 months ago
num = 18
print ("bucky is ") ,num
That works better :))
pavo11111 11 months ago 36
@pavo11111
True, true!
loge00 8 months ago in playlist Python Programming Tutorials
@pavo11111 try print("bucky is",num)
MusicLyricsOnDemand 8 months ago
@pavo11111
You can also do this: print"bucky is",num
even easier :)
remixxproduction 8 months ago
@pavo11111 Dude this doesn't convert the value stored in "num" to string.Rather it just shows the value in "num" in a new line.The comma operator is used for new line.
Saurabh2816 7 months ago
con-cat-an-ate..
wtf.
Kizingtonzz 11 months ago
made us all curious with the repr :D
SSweetAngel 11 months ago
Comment removed
SSweetAngel 11 months ago
back titts Ô_ô i think i can like that 3:46
rxoo7 11 months ago 3
Hahaaha bucky was a teenage pregnancy baby
xDTarozDPS 1 year ago
Hahaaha bucky was a teenage pregnancy baby
xDTarozDPS 1 year ago
7 people can't add numbers to letters
albrco0 1 year ago
Now Alright THis Says. SO MUCH. GOD. Stop repeating that.
PsPr0ducti0ns 1 year ago
Bucky, you're jusy a seviour :)
Thank you again
kangolingoli 1 year ago
"Back tits." Now that's I don't wanna see.
gshnoozer2 1 year ago 2
I really don't see the necessity in adding the numbers to the string when you can just include the number into the string.
taccun 1 year ago
@taccun If you watched one of the previous tutorials, what if the numbers are from input, and you do not know them?
Zeldakitteh 10 months ago
y cant u just write "my mom is 32" u might as well just write "my mom" + num1 + num2 + num3
cheatdude32 1 year ago
But you can also write
num = "18"
and then
print "Bucky is " + num
it is "Bucky is 18"
Zerstoererh 1 year ago
@Zerstoererh you're right it works in 2.7.1
donkekeli 1 year ago
for python 3.1.3 newest version not counting the beta but its exactly: num = 18
print('bucky is', num)
Heartofwolf3 1 year ago
2:06
it's algebra.
PeopleR2sensitive 1 year ago
print "my mom is : " + str(num2)
BLANKMEMORYDATA 1 year ago
just sayin that of your mom was 32 and your 18 then she was 14 when you were born
HellaWorldWeGot 1 year ago
Back tits also work,no need of repr shit.
idvhfd 1 year ago
Wouldn't it be easier to just make it like num = "18" xD
idvhfd 1 year ago
Wouldn't it be easier to just make it like num = "18" xD
idvhfd 1 year ago
'More on strings. NOT moron strings' haha love this guy
5353will 1 year ago
His mom was 14 when she had him :0. Meaning she was around 13 when he was conceived...
TrollsArePeople 1 year ago
FFS guys just uninstall 3.1 and install 2.7 ALL YOUR PROBLEMS ARE SOLVED!!!
D4gI3 1 year ago 86
@D4gI3 OMG YES! YES YES YES! I actually installed 2.7.1 the first time i did this so, wala-no problems!
Zeranti 10 months ago
@D4gI3 Or you just find the solution in 3.X, as far as i've got it, finding solution is a part of programming ^^
Tott3LoL 8 months ago
@Tott3LoL umm not if your trying to learn programming dumb ass...
your saying you are going to learn programming from him when all the code he tries to teach you gives you syntax errors? Your telling me someone new to this language will understand a way how to get around this?
GTFO
D4gI3 8 months ago
@D4gI3 is name calling really necessary?
sailornaruto39 8 months ago
@sailornaruto39 lol sorry sort of had a bad day when I posted that XD
Your right about getting around stuff, but its also good to remember that newer doesn't necessarily mean better (Windows XP/Windows Vista.) Especially when someones trying to follow along with the video.
D4gI3 8 months ago
@D4gI3 :)
sailornaruto39 8 months ago
@D4gI3 I tought solving problems was a part of programming, guess i got it wrong then :( I'm totaly new, started the day i wrote that and found a way around so i wounder whos a dumb ass ;o
Tott3LoL 8 months ago
@Tott3LoL you say that now lol
D4gI3 8 months ago
Wow, you're an Amazing Tutor. Even me, I understood this.
jonath198 1 year ago
i also tried num="18" and it worked
powerpassion0101 1 year ago
1.You dont have to do num + x.
You can do num+x.
2.You dont have to do num = str(18)
You can do num = "18"
I'm not acting smart, I just figured 1 was faster on my own.
I also figured 2 from watching the video. I figured out what he was getting to before he said it and went "oooohhh I get it" and typed num="18" and I got it right. But then he started typing str(18) and I was like WTF? But it is the same, just "18" is faster. Just a tip. I wouldn't have figured this without this dude.
asdfghjkl10531 1 year ago
Print " Your mom has Back TITS"
usergroupX 1 year ago
is there any way to see the functions? i saw a list that came up when you typed in math. in a previous tutorial
H0USEWRECKER 1 year ago
2.7s fine for back ticks
LEGITXBOXHACKS 1 year ago
convert crap in to string using python ahahahahah that's new xDDDD
StaticM 1 year ago
buky is 18 mum is 32 alright :D
KilianMorrison 1 year ago
@KilianMorrison I was a bit disturbed by that too , meaning either she was an early bloomer or Bucky was adopted , i kinda hope it was the second one because 32-18- .75= pedobear seal of approval.
aronedu 1 year ago
@aronedu omg she would had been 13~14 D:
xXxDiukexXx 1 year ago
This has been flagged as spam show
@KilianMorrison I was a bit disturbed by that too , meaning either she was an early bloomer or Bucky was adopted , i kinda hope it was the second one because 32-18- .75= just wrong :(
aronedu 1 year ago
round tits, small tits, flat tits, big tits, uneven tits, and now back tits WOW dyin to see them LOL
arseshan 1 year ago
for those who don't have to write this in new version of python you would write it like this:
>>>> print ("Bucky is" + num)
num has to be in () too
thebrain678 1 year ago
thanks for everything I was lost until I found this I am broke now but I will definately buy your vids when money loosens up
papagaulo 1 year ago
What's wrong with using;
print "Bucky is ", num ?
kiddkaos1 1 year ago
This has been flagged as spam show
You're mom gave birth to you when she was 14?
jakeyboyGH 1 year ago
dude you have awesome tutorials i learned so much from them
bigbb80 1 year ago
how r u sopost 2 rember this?
primer131stdivrecon 1 year ago