Added: 2 years ago
From: thenewboston
Views: 82,024
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (207)

Sign In or Sign Up now to post a comment!
  • name = 'elohssa'

    name[::-1]

    

  • I'd like to file a complaint to youtube, there is this dislike button and 2 people mistook it for a gangster slang button that said: "Dis I like". I'd like this problem to be fixed ASAP and a apology email say you're sorry to them.

  • How the hell did someone click on the dislike button? This an awesome tutorial! Kudos!

  • hey bucky thanks alot for your tutorial on python programming my name is mark tek-ing from philippines I'm an IT student. your tutorial is easy to understand I hope you post alot of videos this is fun.

  • I keep putting goddamn

  • Come on Keyboard! XD

    

  • By the way "in" is case sensitive:

  • What font does he use?

  • LMAO you're-so-hilarious, Thanks =)

  • Python is a racist. It has a built in 'in' word.

    Wait, what...

  • i think the dislikes are people trying to train their pet snake

  • is there a function to tell you how many times a term occurs in a string or list?

  • his sis and dog clicked dislike because they werent included this time

  • i love you videos

  • Why does two bitches have to ruin the perfect like-bar?

  • wow amazing, iv watched all videos up to this one, and i gotta say, i understand this, i dl python 2.7.2. thank you so much, i subs.

  • the built-in In word...

  • 10 buckies..That would be sweet!

  • I dislike dislikers C:

  • 1:14 "WAM BAM THANK YOU MAAM" XD LMAO

  • come on keyboard!

  • wham bam thank you mam

    

  • ('badger '*8 + 'mushroom '*2)*100

  • @Parakaslt haha fantastic

  • I took 'LOL' * 10000000 and then my Python IDLE forze :/

  • a nice thing is that u can also use:

    'm' in family[0] and it would give true : )

  • 'roastbeef' ahahahah

    LOL

  • now we got 19 buckies!

  • @daeheadshot 10

  • goddammit, i keep putting question marks after the in function.

  • I'm getting sick of "bucky"!

  • We now have TEN "bucky"s! [:D].

  • you know..cant you just use the backticks? for example `[4,5,6]` + "bucky" wouldnt that work?

  • @daredevilpwn Yes it wil say: '[4, 5, 6]bucky'. BUT it will treat it like a string! NOT as a sequense.

  • @VselwynV Thanks

  • Python is so much better than C++

  • Alright, I checked 'in' with the example list from the last tut and it doesnt work.

    I typed... '6' in example and got false.... why is that

  • @dnryuuzaki54 Because 6 is not in the list as a string but as an integer. Try: 6 in example

  • 'CD' in DVD drive

    false

  • you could make a 2 player hangman game with this :P

  • brilliant, wish I saw this a long time ago...

  • this gives me an idea for a guessing game :L

  • your tutorials mean the world to me. thank you so much, they're fun and you make it really easy to learn. so thanks again

  • 10 buckies? oh dear... D:

  • Can you use true or false as if then criteria?

  • @manrayer88 how do you mean? sorry but the sentence made no sense xD but if you are talking about statements called true/false, then no, use if, elif, and else (in that order) elif is basically if you want 2 if statements. for example:

    a, b, c = 1, 2, 3

    if a not in b: print ('true')

    elif a = c: print ('lolwut')

    else: #meaning that if a = b, or b = c do this action print ('okay, whatever you say!')

  • So if you don't have a brother you cant follow this tutorial?

  • 6:43 sucked so bad

  • How can I look for a letter in an element of a list. Not sure why I'd want this, but still. Please reply.

  • You can also do '21'*10, so you have '21212121212121212121' instead of [21, 21, 21, 21, 21, 21, 21, 21, 21, 21] with the comas and brackets.

  • I have searched lots of python tutorials before but this are the best...I am Getting all of your tutorials ..... Thanks for Sharing your Knowledge with us.... ! have a great work .....

  • [21,21,21,21,21,21,21,21,21,21­,]hey bucky when i mulitple [21]*10 like that i get it as

    and when you multiple it like '21'*10 you get 21212121212121212121

    why does it happend like that?

  • @romanhorol dunno if someone answered that one. but. when u do [number]*number1 python creates a list of your numbers repeated number1 times. if u do 'number'*number it stupidly repeats it.

  • Comment removed

  • Tumbs for roastbeef

  • @TheSaMaTeR What's a tumb? Thumbs down for you. :3

  • if you wanted to have '2121212121' you would do `21` * 10

  • Could just use "21" as a string and multiply it by the given ammount, same effect but not in a list :D

  • @coltonb85 That's easier than the more complicated programming languages... For example, I've studied Java and well there are things which are similar, but the writing of it is different, and also, writing so many things with so little text is easier to use.

  • sis is not in family, I guess she wasn't cool enough

    hahah

    thanks for all the great tutorials dawgg

  • Lists are just like arrays right?

  • @StonedCoders It looks like arrays, but lists aren't arrays since arrays aren't dynamic, and this list in Python is very dynamic, in java for example, an array has to receive a number of desired cells, in here you don't have to write the exact size of the list. It's very dynamic in Python therefore it's a very nice and quick-to-use language.

  • @SSweetAngel Thank you, that clears it up much better :). Oh boy, I wish languages like C# had lists... Arrays are such a mess to program with, compared to Python.

  • @StonedCoders I am so glad I could help :).

    I agree,but you have to admit, it helps you deal with complex situations, & what's better than making your mind think more throughly of something?

    I have always loved taking all these programming challenges :)

    Python is easy to learn/use/very quick. People who only know Python would probably not understand everything that other programmers do,doesn't mean they won't be able to learn it,but it will be harder I think.At least they start with something:)

  • @SSweetAngel Yeah, I agree that you shouldn't learn Python as your first language. Instead, people should start out with sort of Visual Basic, so they understand the basics of programming.

  • @StonedCoders Perhaps that, or something else, :)

  • @SSweetAngel By the way, do you not agree that the random.choice system in Python is way easier for a newcomer to understand than the complicated arrays of other languages?

    For an example, we can look at picking a random letter from the alphabet

    Python:

    list = ['a','b','c','d','e','f','g','­h','i','j','k','l','m','n','o'­,'p','q','r','s','t','u','v','­x','y','z']

    var1 = random.choice(list)

    print var1

    As in any other language you would have to make it pick a random ASCII value.

  • @StonedCoders ooOoo nice, I haven't got there yet =o

    That's a great way to do it, everything is much more clearer/simple, it's very nice, and quicky to work with :)

    Thanks for the info, do you have msn?

  • @SSweetAngel Yes I indeed have... ninjastampe@hotmail.com

    My Skype: nondistampe ( from denmark )

  • @StonedCoders I added you ^^ ty

  • @SSweetAngel Where did you add me? Also, what is YOUR info? :)

  • I did a word reapeating spam machine with what i learned with this MUAHAHAHA

  • while making the multiple 21's i just made 21 into a string and multiplied that by 10..and so i got the same thing just without the brackets around it; i got '21 21 21 21' so i also tried it with

    print '21' *10

    and that worked fine also

  • I'm going to guess that you go over this in a later tutorial, but is it possible to find the index of the element in the series?

  • Who the fuck could've disliked this, probably they meant like but hit the wrong button!

  • built in "n" word...lol

    

  • you can use (str) to add words to numbers

  • god bless u

  • somebody has a link to download programming challenges in phyton, in new in this thing

  • OH LAWD, my prayers have been answered.

    No more Ctrl+c and then ctrl+v, ctrl+v, ctrl+v

    Now i can just use python,

    "Justin Bieber Sucks" * (19**3)

  • @ShadeRunners Holy crap, that froze my python 2.6.6

  • @newman30000010 Lawl, your pc couldn't handle it, took to much resources. Lower the ints to like 2**9 or something. "Justin Bieber Sucks" * (3**4)

    That should work or get a better pc :D

  • @ShadeRunners that worked fine, and I am running gmod while I did it so.

  • "So what do we do with 'roastbeef'?"

    We EAT it :D

  • lmao 5:11

  • these are great and your getting thumbs up and all but when are we going top actually start writing

  • Theres only one way to find out? Well actually I could try it, or I could google it... lol

  • Darn, at 2:45 i decided to do 999999 and it crashed python.

  • "Is sis in family? No she wasnt cool enough"

    I laughed ;P

  • @talabo3 she was probably Meg xD

  • @talabo3 :D :D :D :D 

  • @talabo3 and mom is so cool LOL

  • Whats wrong with bucky, do you have something against it?

  • ROASTBEEF :D

  • thats some dam good 360p

  • @Digby0907 Hush Yo Mouth!

  • @ironeli101 im surius tho that is the best 320 p video ive seen its not an insult its a complement

  • @Digby0907 Dude I Know It Was. Have You Ever Seen Shaft?

  • May I add something, you can't search for a single letter:

    family = ['mom', 'dad', 'bro']

    'm' in family

    This will print false because 'm' is not in the list, in the list would be 'mom'.

  • Comment removed

  • wam bam thank you ma'm

  • " Thank you Bucky "*10000

  • Thanks roastbeef :D

  • The Python tutorials feels more draggy than the Java ones :(

  • thank you bucky, I OWE YOU!

  • roastbeef

  • "Wam, Bam, thank you mam"

  • because i'm a huge math nerd the output for bucky *10 isn't bucky *10 its bucky **10

  • @fishbeinb No, bucky * 10 = bucky + bucky + bucky... + bucky ten times.

    bucky ** 10 = bucky * bucky * bucky... * bucky ten times.

    bucky ** 2 makes no sense because you can't multiply a string by a string. bucky * 2 = buckybucky.

  • 6:00 hahahahahahahahahahs

  • WERE CLONEING BUCKYS!

    (bucky * 10)

  • "so now, what are we gonna do with roastbeef?"

    "we can check if certain characters are in roastbeef"

  • Tried [10]*30000 and crashed ='(

  • waam bam fag

  • Now, what are we gonna do with roast beef:

    >> eat='OM NOM NOM '

    >>eat+name

  • THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUU­UUUU Bucky.

  • idk how! here`s a error message , Thank you .

  • hmm..... Let's try:

    'Vegard Berg'*10000

    Fear my duplicated army xD

  • Thank you. Earlier today i knew nothing about python. I have learnt so much. Thanks BUCKY!!!

  • @tomknudsen I really don't know, but from educated guess, when you type 32 then "^" symbole is telling python to increase in first intiger by the second one. Thus giving you 35. :)

  • How come this happen in python 32^3 = 35 `?

  • @tomknudsen the "^" in python along with most programming languages isn't the exponent operator that you use in math. It's known in programming as the bitwise XOR operator. The way it works is it takes the binary of the numbers it's operating for and XORs them. A XOR operation is a boolean logic operation where if only one of the two values being compared is "1" or "true" the result is true. So in your problem...

    32 = 100000

    3 = 000011

    35 = 100011

    Hope it helped!

  • @Nightdrone That made sence,  so if one thinks to convert from descimal to binary first, then it is clear that the exponent operator isn't the right command to be using..

    Thak you very much..

  • @tomknudsen I really don't know, but from educated guess, when you type 32 then "^" symbole is telling python to increase in first intiger by the second one. Thus giving you 35. :)

  • Comment removed

  • @tomknudsen write 32**3

  • Very helpful video..thnsk Bucky..!!

  • Thanks Po

  • cool dude

  • I'm learning so hard right now.

  • Another great tutorial.

  • Amazing tutorial. I want eat roastbeef with you mom.

  • reminds me of the beginnings of a program that hacks a pw...

  • So i tried to do this and i found out that this is case sensitive when you try to search

  • WOW!!! I wanted to test if i could crash my computer while watching this... so i said 'spam'*10000000... >.<

  • @Connor390 lol:D

  • its kinda funny how you give the computer a personaloty

  • bucky ow im tired of that lets have it roastbeef! lol

  • Great tutorial...thanks :)

  • *Subscribed*

  • I love ur tuts, and I dont wanna be a smart ass, but for the sake of learning, maybe it does worth to mention that you can join up the string with the list, if the string is within a list, so you have the possibility to join different variable types in a list with the act +..... from a point of a noob's(me) view it was not clear. anyway these videos are the most useful videos for learning pyhton basic on youtube... thx

  • Thank you very much.

  • Great tutorials!

    Thanks

  • 3:00 you used [21], but I started to think, why wont you use ' ' instead of [ ], and it worked :) So you have a reason for that, or just didn't mention ' ' ? btw, lovely tutorials, thank you for your photoshop, dreamweaver, java, and these tutorials, you've taught me ALOT. :)

  • @Realsoft3D The diference is here, supose you have a list

    print list [4] * 4 : will show 16

    print [list [4] ] *4 : will show [4,4,4,4]

    print 'list [4] '* 4 : will show 'list [4],'list [4],'list [4],'list [4]'

  • @Realsoft3D That won't produce an array just 10 strings of "21", he made [21,21,21,..,21,21,21,21,21]

  • so is python only a DOS box program coder or can you actually make things like forms from VB 2008?

  • @Micaheldawg101, it's not a DOS box. It runs in a terminal/console. You can make GUI's. There's probably some RAD tools (rapid application development), where you can make GUIs as easy as in Visual Studio.

    Try googling ;)

  • You can do almost anything VB can, it's a matter of skill. Dragging a bunch of buttons onto a "sheet" isn't what some would call skill. That's why I like python, it's a challenge.

  • But just dragging items to a sheet in VB doesn't create a program, just a window GUI that doesn't do anything unless you write the program for the window. But you can also have a VB program which doesn't need a window as well.

  • your sis will mad at you ;)

  • you're funny :)) I'd like to have you as a teacher :))

  • What if you have more than one? Can you count the number of instances?

  • i just like to point out that i like roast beef as well.

  • Did anyone else find the built in 'n-word' kinda offensive lol jk

  • Thank you so much..I was lost and you helped me a lot....thanx again

  • i love you

  • "Wam, bam, thank you mam"

  • lol mam

  • @BlackMesaProgrammer "I'm sick of bucky... Hrm... let's see..... roastbeef."

  • Comment removed

  • How to remove the duplicate element?

    Thanks in advance

  • @gamemak0r: a.pop() # no arguments pops last one a.pop(0) # pops first element or del a[4]

  • how do you take a number off a list

    eg a = [1,2,3,4,5]

    then change it to a = [1,2,3,4]

    but not just the end number

  • del list[number]

  • that was actualy a helpfull tutroal not saying tat the rest arnt help full but it was cool man you rock and when ever i see you picture i get hungry for tacos

  • Thank u so much for these great tutorials. im learning so much about Python.

  • Hi and thanks for a great job! These tutorials make a great add-on to my university's Pyhton-tutorial.

  • Guess she wasn't cool enough ;D

  • does python support 2D, 3D, etc arrays?

    I like these tutorials

  • Comment removed

  • Comment removed

  • Comment removed

  • Comment removed

  • Comment removed

  • Comment removed

  • Comment removed