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

Link to this comment:

Share to:

All Comments (182)

Sign In or Sign Up now to post a comment!
  • what if I wanna create a list which contains numbers between 1700 and 2012?

    PossibleYears = [1700 to 2012]

    how can I do this without typing EVERY year between those two.

  • love the vids thx for the help with python

  • Nice tutorials Bucky...short,simple and straight to the point..thnx hey! Lov ur voice as well! :)

  • Comment removed

  • hey, you are perfect, i mean, you are a good teacher and your voice is nice to hear too. just go on. thumbs up ;)

  • Is a sequence the same as an array

  • why is python harder than java :(

  • He didnt explain how to add and delte things form the list. Well its done like this (how to add) family.append('whatevver') .... And to remove go family.remove([...])

    Please like this so others can read!

  • @larsmaximilian1 Where did you get this?

  • @alienkishorekumar

    Id say I am a little more experineced than everyone else ehre I have been learning like for 5 months now... And I am long away from knowing how to really programm. But I can tell you as soon as you know 1 programming language all the other ones will come very fast

  • @larsmaximilian1 thanks

  • awesome tut

  • You cant make 2D arrays right?

  • why is this so useful

  • thank you..i needed it~!!

  • perfect tutorials!!!!

  • wow man u r a great teacher. congratz

  • Comment removed

  • Thanks again for taking the time to make these great tutorials. I'm reading "Beginning Python" by Hetland and watching your work here and it's been a very big help in understanding Python. 

  • I like how he starts talking really low in all the videos, but at the end he talks like he is really interested in the subject! :) hehe!

  • Comment removed

  • Comment removed

  • This guy is just like amazing :D

  • How do you set up a stack where you can push, pop, and show?

    And great tutorials :)

  • I have watched Bucky's java, python tutorials...

    so amazing... better than my teachers...

  • it's to late too watch. i will have python test tomorrow TvT

    it's so sadddd ;(

  • @eiiwlee How was your text... 3 months ago?

  • @supersushi269  >>>>>>>>>D+

  • @supersushi269 because someone didn't notice this video was uploaded in 2009 ;D

  • Bucky is our Hero

  • Its like a array in java.....in which i learned java from you...

  • Hey just wanted to say thanks for the tutorials they are really helping me as a really new programmer!

  • your dad is number 1? :D

  • This sounds like an array

  • @MrDadcard it is man .. what did u learn ASP or PHP?

  • @SharpCutterTeam I am trying to learn as much as possible, even though I am not that great at this stuff yet I want to be. I think I am going to try to learn Python and or Java and learn enough to be awesome at it.

  • Help:

    list1 = ['1', '2', '3']

    raw_input("insert from the list1: ")

    How do you limit this raw input using the list1?

    Thx

  • Comment removed

  • @Gurlag39 if you want to add the raw input to the list:

    list1 = ["1, 2, 3"]

    raw_input("insert from the list1: ")

    list1.append(raw_input)wrote some good porgrams

    if this is not what you want ask me i

  • Holy shit, watched 9 parts and now I realised your name is Bucky xP

  • can python be used to make a search engine and a program like winamp ? :)

  • mom is 0, dad is 1 :D

  • @MrLinuxFreak

    computers are machines so they are never wrong

    computers consider women to be inferior...

    hmmm

  • @MrLinuxFreak bro is a number 2 :DD

  • 4 people are scared of snakes

  • Will you marry me?

  • In the course of 9 tuts you taught me so much. THANK YOU!

  • your the man bucky

  • wow, python is real easy to learn :o

  • Aren't lists like arrays?

  • @Morcous16 they are.

  • @Zeldakitteh in programming anythings possible O.o

  • 2:30 - You say that 'sis' is the third element of the list. But 'sis' is the fourth element, is it not? Or is there such a thing as a 0th element?

  • @Zeldakitteh its the element at the third index, or reference in the list. The list is indexed as 0, 1, 2 ...... n-1 element.

  • @bickle1000 Regardless of that it is the element at the third index, the video creator called it the third element. But since there are three elements before it, should not that make list[3] the FOURTH element?

  • @Zeldakitteh list[3] is actually the fourth element in the list at position or index 3.

  • @Zeldakitteh that was actually a mistake/incorrect statement. "sis" is actually the fourth element with index value 3.

    family[3] is actually saying return the element at position or with index value 3. which turns out to be the fourth element in the list. So there is no 0th element. Well only if the list is empty in which case you'll have no element.

  • @bickle1000 stfu his explaination actually makes sense.

  • Comment removed

  • I sort of asked about whether it is right to call the element corresponding to the index of 3 the third element. Because really, it is the fourth element? I do not think you read what I posted completely.

  • do we have arrays in python?

  • True story: I watched all of your videos right before my programming exam (we're using Python of course), and I'm pretty damn sure I aced it. Thank you thank you thank you! You're amazing, Bucky!

  • therefore, -2=3

    

  • After Tutorial 9 is done, the next one YouTube recommends is Tutorial 8. But the next one is supposed to be Tutorial 10. Anyone knows the reason??

  • Wow strings management in Python is wonderful

  • Does anyone else find it dreadfully annoying when he puts both quotes and then goes back to enter the text inside?

  • if you really want to learn... try mixing all the tutorials... its hard shit

  • Comment removed

  • Programmers count from zero. Get used to it =P

  • I like this.Well I like C++ more but w/e

  • wait i thought it didnt matter if we used single or double quotes for strings?

  • If I had to, I would pay for your tutorial! Very nice job!

  • this is the same as an array in vb

  • I'm coming from c++ and this is wayyy simpler. Can do SOME of the same things in a simpler way. But C++ does a lot of other things better than python... I guess it just depends on what your trying to do..That's why they have different programming languages.

  • you should be a high paid college teacher dude, awesome job.

  • At least i find a good tutorials in internet =)

  • great video

  • btw if you learn this FORGET PHP. php is SHIT ;)

    Python rulez! (with Django)

  • @KilianMorrison

    No, C/C++ Rules!

  • @DeadSteal I say start with python then move on to C++

  • @WingedstarsI already know C++.

  • is it like array() in PHP?

  • @KilianMorrison Very similar, yes.

  • I though these were called arrays? Doesn't sequence mean steps of code for the program to execute one right after the other?

  • very easy to learn tutorial........

    nice work done cheerzzzzzzzzzzzzzz

  • you got a skill!

  • you are awesome :D

    thanks for this good tutorials :)

  • best teacher eva!

    

  • best teacher eva!

  • lol negative zero

  • subtitles are off?

  • can u come in my school.......u will be the best teacher ...lol

  • Can someone give me a link to a list of all the things you can do with lists?

    like list.index() or len(list)? Thanks.

  • FOR ALL THOSE USING LATEST PYTHON VERSION, instead of 'bucky'[3].....write

    print('buck'[3]).....

  • Ive Just Started Programing, and my friends told me i should do c++ but my dad said that i should do Python, because Im not particularly good at remembering things or doing things, but he said that Python was Simple but had the power to do what i wanted, These are the best Tutorials on The Web

  • Very well explained, better than a book.

  • mom is zero and dog is 4 haha dog is the highest

  • your tutorials are amazing

    yesterday i only knew that a python is a snake

  • @mrvoodo1 and a Weapon =D

  • @mrvoodo1 lol

  • note all adresses stored on a computar start at 0 your ram's first byte is stored at address 00000000 depending on how many bytes it has... mine gas 2 gb so there is 2000 bytes aka 200 = 11111010000 so my first adress would be called 00000000000... the way everything is stored is about 50 times more complicated and yes i know exacy how a ram stores info... wou i cant care to explain

  • Thanks Po

  • Where are tuples explained?

  • Python is awesome. it is so easy comparatively

  • just so you know, the jargon you are looking for when you say it counts 0, 1, 2 .... is said to be counting in the natural numbers

  • @MrNickolasWilliams the natural numbers are usually taken as starting with 1 (though it depends on context, convention etc.).

  • @gorgolyt not really anymore unless you are a very wierd mathematician. There are still some Layman debates going on over it but it is pretty much convention, esspecially since the creation and development of the computer sciences, the natural numbers begin at zero and maintain an aleph cardinality. A good argument, discrete division based in natural numbers, if zero is not natural 9 divides 9 equals one with a non existant remainder which makes the answer nonexistant, but thats not right.

  • @MrNickolasWilliams but equally 9/0 has a nonexistent answer

    i've taken numbers and sets, analysis, groups, and a few other pure courses at a very good uni, and the convention has always been the standard one.

    like i say though it depends on context; though i'm new to computer science, in that field it's my understanding that they almost always use the 0 convention.

    although interestingly in MATLAB which is a mathematical programming language, the standard convention is again used.

  • @gorgolyt the best argument I found for not including zero is that (n) an element of N is the smallest element in the set that is monotonically increasing, one would be that value in an additive sense. But I still lean towards the zero because (did some research to get the mathematician's name) since '96 Ribenboim asserts that unless inconvienient we assume the zero to be an element of N.

    And with the 9/9 exp I was just pointing out that if an expresion is defined so must be its answer.

  • @gorgolyt I guess for better termonology we really should just do away with saying natural numbers and use better jargon like the non-negative integers and the counting integers.

  • thanks for your tutorials

    

  • Hey guys if you're on Python 3 or greater input() replaces raw_input().

    So for this tutorial your code would be as follows:

    buck = input("Enter name: ")

    print(buck)

    Don't forget the brackets! This is also new in Python 3 or greater. I was stuck personally for ages because I didn't have the brackets around buck and I kept getting the invalid syntax error.

  • @woofa20 Sorry my post was meant for the previous tutorial, my bad, lol.

  • MENN thanks for the tutorial add me as your friends, you are our hero from dominican republic, at last I found a great teacher, I want to specialize in sqlite3 "python" but theres a few things that i dont understand......

    keep making tutorials your amazing bro!!!! my english is very bad sorry

    LOL

  • Thank you so much! Your tutorials really help me.

    I'm only learning python to get the jist of programming, I'm planning on making java games.

  • I am in Russia. Unfortunately the practice of spoken English is very small. Please add captions to your lessons.

    Thanks

  • here is an cool example:

    name=raw_input("Enter your name: ")

    if name[0]=="p": print ' Good Man'

    else: print 'Asshole'

    what this does ???

    if your name starts with p then it'll reply "Good Man"

    else "A'hole" lol

    but it's case sensitive , i mean peter is a good man but Peter is an a'hole lol

  • @GriffinnoFamily You can have do input.lower() after the person enters their name and before the if and else statements.

  • @GriffinnoFamily

    x = raw_input("Please enter your name: ")

    if x[2]=="e":

     print("Good Man!")

    else: print "Asshole!"

    This should work.

  • Your tutorials are so awsome. Could you make some for blender (continuing from no.4)?

  • I love Python!

    THanks for the great tutorials and keep up the good work :D

  • thx for yout great tutorials ^^

    ps: strings are arrays (like your list "family")

  • great video buky

  • Comment removed

  • How would you go about reading in and adding to the array? As in asking 'what are the days of the week?' and the input going to days[ ] ?

  • Dude these tutorials are great! Thanks a mill and keep up the good work!

  • Nawespet,

    raw_input is used to receive letters and numbers and returns it as a string.

    input prompts only for digits!

  • i think that the type of variable that input returns depends on what the actual input is. say, if the user enters 50 it would return a number variable. if they entered asdf it would return a string variable. whereas raw_input always returns a string. is this not correct?

  • hey can anyone help?? when u do raw_input for example "what is your age: "

    how do u take the number the user types so that it can be used in different math things like if i typed 2 how would i say you will be 4 in 2 years time

  • When you use raw_input it is interpreted by the system as a string. Strings can be added together or concatenated so Adding dog + cat would equal dogcat.

    You can't add strings and integers though. So you have to take the string you get from the raw_input and convert it into an integer. You'd do that by using int(entervariablehere)

    So, if I understand the question it might be:

    print "Age test exercise"

    x = raw_input("How old are you?")

    y = int(x)

    print "You will be ", 2+y,"in two years."

  • What I do is make everything with input() and just print it out with back ticks ``. Back ticks convert whatever to strings.

    To make a decimal a string, simply set the number(s) to a variable and type this:

    `float(x)`

    I love Python :)

  • x = int(raw_input("What is your age: "))

    that way, x is whatever they type in :D

  • even text?

  • yeah

  • no, if you type anything other than a number it returns an error. Learn the order of casting. The last thing that statement does is make it an int. It can only be an int.

  • what about str(raw_input("What is your age: "))

    ???

  • raw_input takes any input as a string. It will take numbers and letters, however it will store them as a string (so if you enter 15 it will be kept as '15' and not 15). Putting int() around it tries to change the variable to an int (from '15' to 15), but you can't do that because raw_input inputted a string. putting str() around it tries to change it from a string to a string... so it's pointless. int() doesn't work, str() works but achieves zilch, and thats why theres both input and raw_input

  • So just raw_input without the st() will store it as a string? Thanks :D I've always done str() around it. Now I know better.

  • yup :)

    So when you want to store an int use input(), and strings use raw_input. glad I could help.

  • These tutorials are great. After watching the first 8 I made a practice program that simply finds density for you, and prints it out in a nice sentence in the form of a float. It doesn't accept units of measurement yet though haha. I'm sure that I'll reach that eventually, since I plan to watch all of these videos over the course of the next few weeks. I enjoy your "newb" friendly teaching method, too. Thank you for making these.

  • this is gettinig me through my course!

  • Good stuff, your explanations are easy to understand, it's really helping me understand programming. Thanks for taking the time to do this

  • its 1:22 AM. I am learning this too

  • ...reminds me in some way of ...mysql ?

  • I've just started learning python after having been doing c++ for the majority of my programming life, and WOW. I am amazed! it's so simple yet so powerful!

  • that's why most of the programmers like python because the languages cares about the programmer not the programmer looking after the language.

  • @BenAshton24 I KNOW its the best to start out with !!! i dident know scrath before these tutorials

    SUBscribeSCAdiddillyDO! *click*

  • @BenAshton24 agreed

  • @BenAshton24 Yea! That's my opinion too! Do you like this more than C++? Dunno what to say.The only difference is that I don't have a really long "programming life" for c++ XD

  • @BenAshton24 Don't forget Slow too!

  • @BenAshton24 Yeah, i did c++ so now im doing this and when im finnished ill move back to c++ and see if its any help

  • you tuts are awesome! i learned so much in 2 hours :3 let alone 2 days

  • man i love you videos lol

  • It's not because it loves 0's and 1's, its because it doesnt check the index of the item, but how many items are in front of it. sis is 3 becaues there are 3 items in front of it.

  • Also note that you apparently can put string and numbers in the same list and that you can use family[2][1] to get the second letter of the third family member.

  • It´s 4 am and im trying to learn this >_>..

  • Simular to C++ int Arrays, very nice Tut.

  • awesome dude!!!!

  • have some disco music background so that I can't sleep... thanks dude great tutorial and also a great lullaby...

  • lol what a confusing name

    y cant just name it array lol

  • Is there anyway of changing letter to number equivalents?

    So:

    'a' would become 1,

    'b' would become 2,

    ect

  • a = 1

    b = 2

  • I got that idea but having to do it for the entire alphabet and then having to put 's','e','n','t','a','n','c','e­'...

  • loop.

  • thanks man =)

  • How do I check what the last value of the string is?

  • to check the last value of string, you type:

    *name of string*[-1]

    [-1] shows the last value like he said in the video i think

  • the last character, that is. And if it is a list, evaluates to the last element.