hi, nice tut's but i dont find them usefull... plz could yu make a tutorial of how to make a bot that could maybe link to a flash game? ty for reading.
I have a question: when you create a variable or a list, it is stored on your hard drive, correct? For how long is it stored/where is it stored? does it go away when you close python or will it stay there forever until it is deleted?
print example[2:9:2] ##Location 2 is 2, Excluded Ending Location 9 is 9, and it Increments by 2.
I'm only asking, because the choice in numbers for example is somewhat confusing because it makes people think that you can actually type the numeric value instead of the location in the list... at least that's how I first perceived it.
Compilers-- or in this case interpreters-- don't lie. Therefore you know you did something wrong, even though I bet you can't possibly imagine what that was. Welcome to programming.
Besides writing [:x] (x being any index) when you know that indexing starts at 0 allways so writing [0:x] will give you all the values from the beggining up to x.
Really? Of course it's not a shortcut. That was just his way of explaining that it is a method of getting the whole list without putting in the first and plus one indexes. I guess you haven't noticed Bucky isn't really precise with his use of language, which is not only fine but maybe even helpful with this crowd. What I find amusing if you're taking issue with this and not everything else he says "wrong" then it must be that you're not catching all of those others things.
for example, copy = example would make both names point to the same list while copy = example[:] will create a copy of example and assign it to the variable copy
For example, and this is the last comment I'll make in response; but I finished watching the rest of the video, and it's too good to ignore; he keeps saying "counting backwards". To me saying "short cut" was less egregious--- and here I am being facetious, because like I said there is nothing really wrong with it, and maybe it's even helpful to people intimidated by programing-- because it's relatively true, then saying counting backwards when you really just mean inverse indexing.
@kashman74012345 -then the user could search for filenames by typing in the name of the file. But behind the scenes the software only knows the place number of the files.... As he was showing us if you type List [3] you will get whatever file was the 4th file in the list... The thing I'm wondering about is how do you create a GUI that makes sense to a human... Where a person can type in a filename and the software knows how to find it in the index.... Guess I gotta keep learning to find out
@kashman74012345 the file organizer idea makes sense... If someone wanted to create a type of librarian software to organize media files of some type such as jpegs or mp3 files... Each media file added to the library would be added to the list and indexed (given a number behind the scenes)
Where does the rubber meet the road? Where does all this stuff get applied... Why would I need to make a list in the first place? Let alone have to extract certain data from it.... Some real world examples of when, where and why these skills he is teaching come into play when writing real software would be helpful to a beginner like me... It's just as important as the "How"
@disnukka79 Well, im no expert here. but connected to a raw input it could play a key role in organizational tools.. i mean, raw_input for x and y which are plugged into the slicer.useful for a calender eh? Please enter the dates you would like to view. of course most of this would be alot of behind the scenes. it could also be used to make a file organizer. Such as between dates or any other sets of information. Just ideas. tell me if you see some of how this could be applied.
Alright I've made it through 10 of these vids and I'm still waiting for the "Why" to be answered... How is being covered but I need this stuff to be put in context... what am I going to be able to do with this stuff. If I spend the required amount of time learning this stuff what am I going to be able to do with it... Can I really make cool software with this stuff that actually does something
becouse python starts counting with 0 NOT with 1. And when you type
numbers[2:5] it means python reads position 2 (it doesn't matter what number it is in position) and numbers between position 2 (including position 2) and 5 but without position 5.
Thanks for the videos, all I could find was how to make something and it does not explain anything. Your videos seem to explain things right, on to part 11 next :P
When Bucky said that 4 is the number it begins with, he meant it is the fourth position (or fith, as it starts with 0), not the number 4. If it were a,b,c,d,e,f,g,h,i,j, then it would start with e, as it is the fourth item, starting with 0.
I still don't understand the idea of -5. Bucky explains that it's to count the order backwards. But in the video the numbers don't return backwards. they count up [5,6,7,8,9]. So, was using -5 exactly the same as using 5?
@blizteria negative counting starts with -1 from the end to the start.. while positive counting starts with 0 from start to end. So in this example .. example[-5] would be the same as example[5] coz it points to the same value .ie 5.
@bubbleheadft Wrong. You probably just forgot to add "0" to the first section of your list.
"Typing [4:9]..." This will give you what's inside index 4 and up to (but does not include) 9. The index number 4 is actually the 5th index in the list. This is because the starting index is 0 on most programming languages.
I use 2.7.2 and everything works perfectly just perfect - so far.
@bubbleheadft yes jaffze123 was right typically programiing language use 0 as the base array, not 1. Nevertheless, some use 1. But in this python, it use 0.
@bubbleheadft I'm using python 2.7.2 and typing [4:9] gives me the result: [4,5,6,7] as he says. Before vote up this comment check which result you have.
i tried a method using print, i first made the variable like this "fgame = ['cstrike','hl2dm','lol','fof']" so when i do "print "my favorite game is " + fgame[1]" it works saying "my favorite game is hl2dm" but now when i want to slice the list doing "print "my favorite games are " +fgame[0:3]" it gives me error because its not string the command, so i did "print "my favorite games are " + `fgame[0:3]`" it gives me "my favorite games are ['cstrike', 'hl2dm', 'lol']" how print without [,]?
@Gamsterjeff600 no actually bruno7242 has a newer version 2.7 bucky is using 2.6 i got the same problem following this video too [4 : 8] returns [5, 6, 7, 8] in the newer version :)
@Gamsterjeff600 nevermind i presume bruno made the same mistake i did.. i forgot to put 0 into the list and since it counts position and not the actual number when using slicing it gave me 5 as it was in the 4th position in my list.... bucky still is using python 2.6 tho :)
Hey bucky, thanks for these tutorials! i've been programming in C++ on windows for over a year now(all thanks to your videos!), but I just moved over to ubuntu, and python is a great language for me to learn in ubuntu. could you make some videos on how to use WxWidgets or Boa Constructor to make interfaces for our python programs? it would be really awesome(not that your videos aren't great already. they are!). thanks!
Your explanation is not exactly correct. Counting starts with POSITION 0, and not 1. The numbers between [ ] are the positions that you want to retrieve.
@maciagt I noticed that too. Bucky, try to do it with characters and you'll see that you can't just write example[a:c]. As you said in your 9th video, we're working with indexes.
Your explanation is not exactly correct. Counting starts with POSITION 0, and not 1. The numbers between brzckets are the positions that you want to retrieve.
there's something i dont understand. when you on the example list (example [0,1,2,3,4,5,6,7,8,9]), what difference does it make if i write: example [-5:] or example [5:]?
I think that your tutorials are great! They are helping my learn python very quickly. For this video, it was easier for me to use my previously created list 'family' instead of the list 'example' so the operators in the [] parameters aren't confused with the data in my list.
Damn bucky! thx:) I'm reading programing at school but I havent learned anything there compared to this. So thx, and your giving me good grades too!^^
I am having an issue with this tutorial. When I type, for example: example[1:4] I get as the result: [2, 3, 4]. The python is skipping the first number and I can't understand why. I am using:
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
this guy is a legand!!!! i have been "tring" to work with python 4 the last month and non of it has been making much sense but half hour of browsing tho theses vids and BAM i know python :) well worth watching them all :)
once again thanks for all ur time spend on theses videos has made it so much easier 4 the rest of us :)
Woah it's so easy to manipulate arrays in python! In Java you have you have to pull your spine out through your eye socket to make the array do that... In comparison of course...
Thank you very much for making python very clear! I tried reading the book, I get et but not very clear. Again thank you for posting these tutorial!!!
OMG you're videos are the best!!! I have looked all over the internet to find things to help me and finally I found you and now I can program!!!! YOU ARE THE BEST!!!!!!
i have been watching your videos up to this one when i started thinking, i know how to do the stuff i just don't know when to use it or anything like that. i just started computer programming and watching your videos. if anyone can help me, thanks
Sommone needs to make assignments with solutions to go along with these tutorials. It helps one really learn and develop the material since they have to apply it to solving problems.
@72drummerboi what you need from here, you have to create a project. For example take a paper and write: Programm name, what the program shoud do and start creating it. example
program "pdf from list"
then you create a bunch of code to collect the data
then u store the data into something (database, here u create a code to store stuff in it) or txt
then u get a module to create a pdf from it
OR you write a bunch of code to interact with another program to convert it (like open office) good luck!
@72drummerboi lets think hacking because its probably the easiest to explain. say you want a program that finds an ip adress and then connects. you would make a variable for the ip and make a program that finds an ip and puts it in that variable. then you create some code that can connect your computer to that ip, well as soon as you move to the next line of code, the ip is lost so that's where the variable comes in handy. then you tell the program to connect to that variable which has stored
the ip.where as lists are mainly for organizing variables. when there is really complex code you have alot of variables. mainly these are stored in lists to simplify things.
@72drummerboi Best way i think is to think a program, just think it through in your head and think what do i want it to do. Then after this think how to solve it and then just solve the problem. Maybe start from something simple, i don't know... have for example 10 questions and each time you get a question right you get 1 point. At the end you will see how many points you got. That was one of the first independent tasks i made and i think it helped a lot to get to solve your own problems
0 is a number in python
MrJ0239h 2 days ago
example=[1,2,4,7,5]
example[-1:0:-1]
Output
[5, 7, 4, 2]
What is wrong here?
the way I see it, count from -1(last element) to 0(first element) using -1(backwords with 1 increment) .. but then why first element gets skipped?
This code example[::-1] works perfectly fine and gives out all numbers in rev order
Sanditech 1 week ago in playlist Python Programming Tutorials
[10:0:02]
[4:]
anything like that doesnt work for me.
havocinluv 3 weeks ago
ur a better teacher than google
xcvsdxvsx 1 month ago in playlist Python Programming Tutorials 4
hi, nice tut's but i dont find them usefull... plz could yu make a tutorial of how to make a bot that could maybe link to a flash game? ty for reading.
hackerfromhell1 1 month ago
I have a question: when you create a variable or a list, it is stored on your hard drive, correct? For how long is it stored/where is it stored? does it go away when you close python or will it stay there forever until it is deleted?
pbjLUBESTER 1 month ago in playlist TheNewBoston Python Tutorial Playlist
You could use
>>>example[4:]
this would give you all the numbers to the end of your list as well without using '-'
das12985 1 month ago in playlist Python Programming Tutorials
example[-5:10] WHy not?
OcarinaInMyPants 1 month ago in playlist Python Programming Tutorials
1:13 :|]
TailoredTreds 1 month ago
Java programmer here... PYTHON IS SUPER COOL! 6:05
supersushi269 2 months ago
This works in python 3.2.2 as well. Just so people know and don't freak out.
Kytuzian 2 months ago 2
Becky, thanks for all your videos. Well done. I am a fan.
kaiserbiz 3 months ago in playlist Python Programming Tutorials
Just to be clear, when splitting , it goes
[Location: Excluded End Location: Increment]
right?
EX:
example = [0,1,2,3,4,5,6,7,8,9]
print example[2:9:2] ##Location 2 is 2, Excluded Ending Location 9 is 9, and it Increments by 2.
I'm only asking, because the choice in numbers for example is somewhat confusing because it makes people think that you can actually type the numeric value instead of the location in the list... at least that's how I first perceived it.
RandomBoilermaker 3 months ago
why do I always understand fucky at the beginning?
larsmaximilian1 3 months ago in playlist Weitere Videos von thenewboston
at my last comment i wrote this and without watching further in i learnt that thats what you did sorry
rednut416 3 months ago
if you want the whole list (1,2,3,4,5,6,7,8,9)
instead of writing 1:10 you can write [1:] and it will do the whole list
rednut416 3 months ago
@rednut416 Actually, you can just type example, and it'll do the same thing. Even faster
Kytuzian 2 months ago
BAM! roasted toasted!
^ def saying that now..
for4est0 4 months ago
I get 5-8 when i type 4:8...
CycloneGaming1 5 months ago
@CycloneGaming1
Compilers-- or in this case interpreters-- don't lie. Therefore you know you did something wrong, even though I bet you can't possibly imagine what that was. Welcome to programming.
PoorRichardSaunders 4 months ago
Besides writing [:x] (x being any index) when you know that indexing starts at 0 allways so writing [0:x] will give you all the values from the beggining up to x.
CrazyShooter199 5 months ago
you dont have to use example[:] to see your whole list you can just type the name of your list
monkeygirl3000 5 months ago in playlist Python Programming Tutorials
ill name it example cuz thats how creative i am! lmao XD
xxshadowfanxx1022 5 months ago
lool have to admit quite simple, made a pokemon one (why pokemon, who knows)
shadelegend786 5 months ago
example IS example[:]
How is that a shortcut?
walkerneo 6 months ago 2
@walkerneo
Really? Of course it's not a shortcut. That was just his way of explaining that it is a method of getting the whole list without putting in the first and plus one indexes. I guess you haven't noticed Bucky isn't really precise with his use of language, which is not only fine but maybe even helpful with this crowd. What I find amusing if you're taking issue with this and not everything else he says "wrong" then it must be that you're not catching all of those others things.
PoorRichardSaunders 4 months ago
@PoorRichardSaunders
and by "list" I actually meant to say "sequence" since I believe that is what this data type is termed in Python.
PoorRichardSaunders 4 months ago
@PoorRichardSaunders example[:] is useful if you want to make a copy of a list.
for example, copy = example would make both names point to the same list while copy = example[:] will create a copy of example and assign it to the variable copy
tempestjg 4 months ago
For example, and this is the last comment I'll make in response; but I finished watching the rest of the video, and it's too good to ignore; he keeps saying "counting backwards". To me saying "short cut" was less egregious--- and here I am being facetious, because like I said there is nothing really wrong with it, and maybe it's even helpful to people intimidated by programing-- because it's relatively true, then saying counting backwards when you really just mean inverse indexing.
PoorRichardSaunders 4 months ago
@kashman74012345 -then the user could search for filenames by typing in the name of the file. But behind the scenes the software only knows the place number of the files.... As he was showing us if you type List [3] you will get whatever file was the 4th file in the list... The thing I'm wondering about is how do you create a GUI that makes sense to a human... Where a person can type in a filename and the software knows how to find it in the index.... Guess I gotta keep learning to find out
disnukka79 6 months ago
@kashman74012345 the file organizer idea makes sense... If someone wanted to create a type of librarian software to organize media files of some type such as jpegs or mp3 files... Each media file added to the library would be added to the list and indexed (given a number behind the scenes)
disnukka79 6 months ago
Where does the rubber meet the road? Where does all this stuff get applied... Why would I need to make a list in the first place? Let alone have to extract certain data from it.... Some real world examples of when, where and why these skills he is teaching come into play when writing real software would be helpful to a beginner like me... It's just as important as the "How"
disnukka79 6 months ago
@disnukka79 Well, im no expert here. but connected to a raw input it could play a key role in organizational tools.. i mean, raw_input for x and y which are plugged into the slicer.useful for a calender eh? Please enter the dates you would like to view. of course most of this would be alot of behind the scenes. it could also be used to make a file organizer. Such as between dates or any other sets of information. Just ideas. tell me if you see some of how this could be applied.
kashman74012345 6 months ago in playlist Python Programming Tutorials
Alright I've made it through 10 of these vids and I'm still waiting for the "Why" to be answered... How is being covered but I need this stuff to be put in context... what am I going to be able to do with this stuff. If I spend the required amount of time learning this stuff what am I going to be able to do with it... Can I really make cool software with this stuff that actually does something
disnukka79 6 months ago
"Now I said that was the last thing I'm gonna teach you; I lied."
Bwah ha ha I dunno why I thought that was funny
xoDevilBabyox 6 months ago
Do you have questions that come with the tutorials? It would be nice if you did cuz it gives us practice, y'know?
xoDevilBabyox 6 months ago
Do you have questions that come with the tutorials?
xoDevilBabyox 6 months ago
i defined the example as example[2,4,6,8,10,12,14,16]. And when I typed in example[2:6] it printed out [6,8,20,12].
Why did this happen? Did I do something wrong?
gethighfly 6 months ago
@gethighfly no you got it right.
let me give you a example:
numbers = [0,1,2,3,4,5,6,7,8,9]
now if you want to extract [2,3,4] you must type:
numbers[2:5]
becouse python starts counting with 0 NOT with 1. And when you type
numbers[2:5] it means python reads position 2 (it doesn't matter what number it is in position) and numbers between position 2 (including position 2) and 5 but without position 5.
I hope I was clear enough.
TheCrazyshuffler1 6 months ago
@TheCrazyshuffler1 Oh right! I missed that point! Thank you very much! You were very clear.
gethighfly 6 months ago
THUMBS UP IF YOU WANT BUCKY TO BE YOUR TEACHER!!!! bucky ftw!
TheElip100 6 months ago
@0:58 he Says do a semicolon (;) , But instead does a colon (:), The colon is right. I just got mislead by it :D.
LittleHackerX64 6 months ago
Thanks for the videos, all I could find was how to make something and it does not explain anything. Your videos seem to explain things right, on to part 11 next :P
wasitrealy 6 months ago
exampili
adhadimohd 6 months ago
I wish I was as smart as Bucky
MinecaftGamer 6 months ago 2
now if you do [4:9] it skips four and includes 9
MartyGazzaGaming 7 months ago
it's a full colon :) not a semi
TheGeekSquadron 7 months ago
Anyone else bugged by the fact that bucky always says semicolon instead of colon?
MrPridam 7 months ago
Comment removed
Decists 7 months ago
This has been flagged as spam show
example[-0:10]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
cjs379 7 months ago
Why not just do print example?
zaxby19 8 months ago
@zaxby19 Because we're trying to learn something new smartass
Br0ski2 7 months ago
raw_input ( "dude youre like the greatest teacher ever")
Destunner 8 months ago
This has been flagged as spam show
@Destunner you mean print ("dude youre like the greatest teacher ever"), do not you?
joonas2345 8 months ago
@Destunner you mean print "dude youre like the greatest teacher ever" ?
pythonmaster1337 7 months ago
its like setting a fixed range to the list
uchiacln95 8 months ago
sloice
Youngsmurf98 8 months ago
Colon, not semi.
AnselmWiercioch 8 months ago
And it means the one after the fourth position.
ChukMakeIt 8 months ago in playlist Python Programming Tutorials
When Bucky said that 4 is the number it begins with, he meant it is the fourth position (or fith, as it starts with 0), not the number 4. If it were a,b,c,d,e,f,g,h,i,j, then it would start with e, as it is the fourth item, starting with 0.
ChukMakeIt 8 months ago in playlist Python Programming Tutorials
Comment removed
ChukMakeIt 9 months ago in playlist Python Programming Tutorials
4:50
You could just type example.
Arasuko 9 months ago
I still don't understand the idea of -5. Bucky explains that it's to count the order backwards. But in the video the numbers don't return backwards. they count up [5,6,7,8,9]. So, was using -5 exactly the same as using 5?
blizteria 10 months ago
@blizteria negative counting starts with -1 from the end to the start.. while positive counting starts with 0 from start to end. So in this example .. example[-5] would be the same as example[5] coz it points to the same value .ie 5.
QuickDeath147 10 months ago
You LIAR!!!!!
dylondragon 10 months ago
Comment removed
bubbleheadft 10 months ago 45
@bubbleheadft i got python 2.7.1 and it works just like boston said; i got the list example = [0,1,2,3,4,5,6,7,8,9]
then next line i typed in example[4:9] it gave the output [4, 5, 6, 7, 8] so yeah ^^"
heyaanimerocksheya 10 months ago
@bubbleheadft I got Python 2.7.1 and for me it prints out the first number
remixxproduction 8 months ago
@bubbleheadft 2.7.2 does it the right way.
Sylverstone14 8 months ago
This has been flagged as spam show
@bubbleheadft "Typing [4:9] will lend the result:
[5, 6, 7, 8] Python 2.7 does not include the first number. Vote this up, so people can see it."
Actually I'm using Python 2.7.2 and your example gives the result [4,5,6,7,8]
amiller112 8 months ago in playlist Python 2
@bubbleheadft Wrong. You probably just forgot to add "0" to the first section of your list.
"Typing [4:9]..." This will give you what's inside index 4 and up to (but does not include) 9. The index number 4 is actually the 5th index in the list. This is because the starting index is 0 on most programming languages.
I use 2.7.2 and everything works perfectly just perfect - so far.
JaffZe123 8 months ago 17
@bubbleheadft wrong.
pythonmaster1337 7 months ago
@bubbleheadft yes jaffze123 was right typically programiing language use 0 as the base array, not 1. Nevertheless, some use 1. But in this python, it use 0.
SuperAvailable123 7 months ago
@bubbleheadft I'm using python 2.7.2 and typing [4:9] gives me the result: [4,5,6,7] as he says. Before vote up this comment check which result you have.
dariodcr 7 months ago 10
thax for the vid,,really helpful
beanies12 10 months ago
you can also doo [4: ] that means include 4 up too the end of the list
and [4:9] means include 4 go up to put dont include 9
loko95ftp 10 months ago
i did it and when i did example[3:5] it said "syntaxError:invalid syntax" and the colen (:) was in red
dancetrance101 10 months ago
don't watch zander101084 he just wants the views
This guy here is better lets just stick with him
Lazaruzerick 11 months ago
example; gives u your entire list as well
killer36098 11 months ago
e-x-ample-ee
lol
Dianeva89 1 year ago 3
This has been flagged as spam show
what you are adding is a colon not a semicolon
RIGENSTEIN 1 year ago
exam[1:3]
[1, 2]
gsdaw4 1 year ago
ex am palee
mangopearandapples 1 year ago
shortcut to getting the entire list([:])? can't you just write the name of the list and it will show up? It worked for me.
Terror3659 1 year ago
When you have a list of of integers how do you find the sum or difference of all the integers in the list?
pobah341 1 year ago
if you have a list of integers how do you find the sum of all the integers in the list?
pobah341 1 year ago
i tried a method using print, i first made the variable like this "fgame = ['cstrike','hl2dm','lol','fof']" so when i do "print "my favorite game is " + fgame[1]" it works saying "my favorite game is hl2dm" but now when i want to slice the list doing "print "my favorite games are " +fgame[0:3]" it gives me error because its not string the command, so i did "print "my favorite games are " + `fgame[0:3]`" it gives me "my favorite games are ['cstrike', 'hl2dm', 'lol']" how print without [,]?
nosthertus 1 year ago
@nosthertus around the fgame[0:3] dnt use quotations, use the tic (`) mark in the left hand corner of jeyboard
ex.
>>> fgame = ['cstrike', 'hl2dm', 'lol', 'fof']
>>> print "my favorite games are" + `fgame[0:3]`
>>> my favorite games are [cstrike, hl2dm, lol, fof]
since u added the `(tick mark) instead of the '(single quote), it shud work
FilmMaker103 1 year ago
I've just done an searching algorithm like google, that searches for the most equal line to our search in a text. This program really works well
mok0s1 1 year ago
in python 2.7 slicing is different
if you type example[4:8] for the list example=[1,2,3,4,5,6,7,8,9] there will appear the numbers [5,6,7,8] not [4,5,6,7]
bruno7242 1 year ago
@bruno7242 it's because he had a 0 in his example, look into that
TheDavoDavito 1 year ago
@bruno7242 You have the much older version bud sorry but he has the newer version
Gamsterjeff600 1 year ago
@Gamsterjeff600 no actually bruno7242 has a newer version 2.7 bucky is using 2.6 i got the same problem following this video too [4 : 8] returns [5, 6, 7, 8] in the newer version :)
Smdylan 1 year ago
Comment removed
Smdylan 1 year ago
@Gamsterjeff600 nevermind i presume bruno made the same mistake i did.. i forgot to put 0 into the list and since it counts position and not the actual number when using slicing it gave me 5 as it was in the 4th position in my list.... bucky still is using python 2.6 tho :)
Smdylan 1 year ago
You might be able to make it clearer by using a list of something other than numbers
Gfdtink 1 year ago
@72drummerboi think of a simple task you want to automate on the computer and code it!
thechitowncubs 1 year ago
@thechitowncubs lol. Coding is actually fun and pretty easy to me. Coding scripts in Source engine games like TF2 helped :D
PeopleR2sensitive 1 year ago
@PeopleR2sensitive It's fun to me too :)
thechitowncubs 1 year ago
@PlasticPackage You probably aren't going have much success if you need to ask that
thechitowncubs 1 year ago
Hey, I need to know something. Am I going to need Flash? Or can I make programs using only Python?
PlasticPackage 1 year ago
you seriously should become a teacher
D4gI3 1 year ago
just example that you can print everything, like example[:]
and you are awesome.
ZGfang 1 year ago
thx u dude .it s really helpful to me .
yuchaosys 1 year ago
BAM. Roast it toast it.
LOOOOOOOOOOOL
KharionX 1 year ago 59
@KharionX why would you laugh out out out out out out out out out out out loud?
JadedLeach 8 months ago
@JadedLeach Because he's awesome. ._.
TheMario8236 8 months ago
Hey bucky, thanks for these tutorials! i've been programming in C++ on windows for over a year now(all thanks to your videos!), but I just moved over to ubuntu, and python is a great language for me to learn in ubuntu. could you make some videos on how to use WxWidgets or Boa Constructor to make interfaces for our python programs? it would be really awesome(not that your videos aren't great already. they are!). thanks!
joeymjones 1 year ago
4:48 Bam bucky you are a guiness
JM763 1 year ago
Bucky,
Your explanation is not exactly correct. Counting starts with POSITION 0, and not 1. The numbers between [ ] are the positions that you want to retrieve.
maciagt 1 year ago 21
@maciagt I noticed that too. Bucky, try to do it with characters and you'll see that you can't just write example[a:c]. As you said in your 9th video, we're working with indexes.
grabich 1 year ago
@maciagt His name is greg lol.
asdfghjkl10531 1 year ago
@maciagt he starts with a zero.
ilikecoding 11 months ago
@maciagt He never says that position start at 1? He just chose to start his slice at 1
Rockinbass2007 11 months ago
@maciagt he explained that the previous vid
oquendora 11 months ago
@maciagt
stfu
Supermang911 8 months ago
Your explanation is not exactly correct. Counting starts with POSITION 0, and not 1. The numbers between brzckets are the positions that you want to retrieve.
maciagt 1 year ago
when using python 2.7.1, I did exmaple[ 4:8] and it gave me
[5, 6, 7, 8]
GaryOGaryProductions 1 year ago
there's something i dont understand. when you on the example list (example [0,1,2,3,4,5,6,7,8,9]), what difference does it make if i write: example [-5:] or example [5:]?
the - sign doesnt change anything...
romangod2009 1 year ago
@romangod2009 In this particular example it doesn't. But if he'd use 4 and -4, he'd get example[4:]=[4,5,6,7,8,9] and example[-4:]=[6,7,8,9]
grabich 1 year ago
OR IS IT?
lol
Upuroade 1 year ago
I think that your tutorials are great! They are helping my learn python very quickly. For this video, it was easier for me to use my previously created list 'family' instead of the list 'example' so the operators in the [] parameters aren't confused with the data in my list.
sendingtime 1 year ago
Comment removed
sendingtime 1 year ago
Damn bucky! thx:) I'm reading programing at school but I havent learned anything there compared to this. So thx, and your giving me good grades too!^^
ConfidentRouge 1 year ago
от десяти до нуля и каждый раз по минус два=)
thank you for tutorials!
MegaXakep1 1 year ago
Please don't reply to old comments like 4 months old.
iChopBalls 1 year ago
@iChopBalls so replying to ones like this is ok? Just making sure
poj0426 1 year ago
Oops, nevermind. My mistake. I started from 1, not 0.
My bad!
andregiestas 1 year ago
I am having an issue with this tutorial. When I type, for example: example[1:4] I get as the result: [2, 3, 4]. The python is skipping the first number and I can't understand why. I am using:
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
I hope somebody can help me out.
Thx guys
andregiestas 1 year ago
@Richardunn It stops. The indexing starts from 0 , so example[6] is actually 7, example[3] = 4, and you got the correct output: 4,5,6 :)
UnCtrlLable 1 year ago
Comment removed
Cengiz159 1 year ago
@Richardunn You excluded 0 from your example=[ ] sequence.
ms2Tech 1 year ago
Hey Bucky, thanks for making these videos. They're really helpful! =]
aLotS 1 year ago
i love u, tnx bro
swedenhackers 1 year ago
BUCKY IS AWESOME! Thanks, this is so helpful.
supermaruchi 1 year ago
man your the best in youtube!!!!!!!!!!!!
avatar12345100 1 year ago
@Richardunn still does your example should star from 0
example=[0,1,2,3,4,5,6,7,8,9]
example[3:6]
[3,4,5]
dj7781 1 year ago
Thumbs up if he is better than your teacher!
electronikita 1 year ago
Where did you learn all this? Did you do a computer science class or something?
axcfds 1 year ago
oh you mean this tutorial explains HOW TO SELECT A MINIATURE LIST FROM YOUR LIST......makes sense....thanks a million....
Cavemanbennett 1 year ago
haha 3:34 is hilarious! xD
great tutorials btw =)
nikkix1510 1 year ago
got me in boiling thoughts n all to later surpise me with "or is it" LOL, u sneaky son of a bitch i love you, thanks for all.
bennybonge 1 year ago
He must be stinkin' rich, making such cool programs. Did your Hey bucky program get you a lot of money? :-) KUTGW
AdamsTeinz 1 year ago
0:58 square braces...
Anyway, great vid bucky!
elementoxygen 1 year ago
Can sb tell me where EXACTLY is slicing used? U know like a list of photos, a list of books or sth like that...
Mentesidi 1 year ago
I love your tutorials. I have looked everywhere and even tried to find books, but your tutorials are the best. Thank you so much!!!!
fwed88 1 year ago
You are cool man..... Bucky you rock.........
Now I am feeling I can use python...... still only on 10 th hahaha!!!
MrPranaykhatri 1 year ago
Oh, wow. This is kinda like Matlab.
fullofhate77 1 year ago
Great tutorial. Keep up the great work!
playplay1978 1 year ago
Hey just want to let you know that i just got into learning python today and with your tutorials it is seaming easier by the tutorial
diz90productions 1 year ago
this guy is a legand!!!! i have been "tring" to work with python 4 the last month and non of it has been making much sense but half hour of browsing tho theses vids and BAM i know python :) well worth watching them all :)
once again thanks for all ur time spend on theses videos has made it so much easier 4 the rest of us :)
dan1189 1 year ago
Hey, Bucky...
Thanks for these python tutorials, they've really helped me learn the language. you're great!
joeymjones 1 year ago
this reminds me of ms excel
tomek123kotek 1 year ago
Is Python similar to Ruby in the sence that everything is an object?
hectixx 1 year ago
Great video ! you are really good teacher.
kiev786 1 year ago
Woah it's so easy to manipulate arrays in python! In Java you have you have to pull your spine out through your eye socket to make the array do that... In comparison of course...
Nightdrone 1 year ago
u also have tutorials for VPython? cause i think this is much more interesting but very hard to understand everything. Would be pleased if u answer!
informplayer 1 year ago
Thank you very much for making python very clear! I tried reading the book, I get et but not very clear. Again thank you for posting these tutorial!!!
dbarroga 1 year ago
tnx again, smooth, step by step
chrizbiz 1 year ago
var[::-1] easy way to invert list
DaftViz 1 year ago
OMG you're videos are the best!!! I have looked all over the internet to find things to help me and finally I found you and now I can program!!!! YOU ARE THE BEST!!!!!!
tytippy2 1 year ago
i have been watching your videos up to this one when i started thinking, i know how to do the stuff i just don't know when to use it or anything like that. i just started computer programming and watching your videos. if anyone can help me, thanks
72drummerboi 1 year ago 44
@72drummerboi
Sommone needs to make assignments with solutions to go along with these tutorials. It helps one really learn and develop the material since they have to apply it to solving problems.
FuzzyChicken29 1 year ago
@72drummerboi what you need from here, you have to create a project. For example take a paper and write: Programm name, what the program shoud do and start creating it. example
program "pdf from list"
then you create a bunch of code to collect the data
then u store the data into something (database, here u create a code to store stuff in it) or txt
then u get a module to create a pdf from it
OR you write a bunch of code to interact with another program to convert it (like open office) good luck!
hydrogenix 1 year ago
@72drummerboi lets think hacking because its probably the easiest to explain. say you want a program that finds an ip adress and then connects. you would make a variable for the ip and make a program that finds an ip and puts it in that variable. then you create some code that can connect your computer to that ip, well as soon as you move to the next line of code, the ip is lost so that's where the variable comes in handy. then you tell the program to connect to that variable which has stored
gjh33 1 year ago
@gjh33 I just read all that and it made me think " I'm still a retard "
Wingedstars 1 year ago
the ip.where as lists are mainly for organizing variables. when there is really complex code you have alot of variables. mainly these are stored in lists to simplify things.
gjh33 1 year ago
I'm sure he will get to that. Just keep watching.
PlasticPackage 1 year ago
@72drummerboi You could search for programming tasks, and then try them.
Zerstoererh 1 year ago
@72drummerboi That's exactly how I am here at the University of Kentucky. Have you started writing your own programs yet?
StephenHardyMusic 1 year ago
@72drummerboi Best way i think is to think a program, just think it through in your head and think what do i want it to do. Then after this think how to solve it and then just solve the problem. Maybe start from something simple, i don't know... have for example 10 questions and each time you get a question right you get 1 point. At the end you will see how many points you got. That was one of the first independent tasks i made and i think it helped a lot to get to solve your own problems
RaamAnkka 1 year ago