Python 2.7 Tutorial Part 2

preview_player
Показать описание

I continue my Python 2.7 Tutorial by covering how to use Tuples and Lists in Python.
Рекомендации по теме
Комментарии
Автор

@gent2910 I'll provide more ways to use lists in the upcoming examples. Glad you liked it

derekbanas
Автор

Make sure you can see Package Explorer on your screen Window -> Show View -> Package Explorer Right click the top most folder and click New -> File and give it a name with the extension .py

derekbanas
Автор

@scriptmastervel Your welcome. I have a ton of other Python tutorials. If you need anything just ask :)

derekbanas
Автор

You can definitely do that, but I didn't cover Django because it normally requires a dedicated host which is very expensive. I'll cover Django at some point

derekbanas
Автор

Thank you :) I see more opportunity in developing Android apps and that is what I have experience with. I'll be making an Android tutorial that will go on for about 6 months. In it I'll show how to make every app the whole way through 3D games. It is coming very soon

derekbanas
Автор

It stands for example and no it doesn't have any special meaning. It is just the variable name I picked at random

derekbanas
Автор

@Gregore2000 I edit out all of the pauses in the video :)

derekbanas
Автор

Great greatest tutorial! As an occasional Python user, I find your polished tutorial simply riveting.
Keep up with the good work Derek.
And many thanks.

skyfall
Автор

You're very welcome. The editing takes a lot of time, but I think it is worth it :)

derekbanas
Автор

You could execute python code on the web using cgitb, but this isn't very useful. That is why people use a web framework like Django. The only problem is that most every hosting company that allows you to use Django limits Bandwidth usage unless you pay a lot of money. That is why I have not done a Django tutorial yet. I hope that helps

derekbanas
Автор

What do you mean exactly by spilt lists?

derekbanas
Автор

Hello Derek,
Please note that listEx.remove(listEx[3]) for example won't remove the value of the index 3, it will remove the first element in the list that contains the value that is equal to listEx[3].
>>> listEx = [1, 2, 3, 2, 5]
>>> listEx.remove(listEx[3])
>>> print listEx
# the output will be:
[1, 3, 2, 5] # not [1, 2, 3, 5]

deyarimawi
Автор

Hey, As i said before, I really like your tutorials. In this one there is a little thing... When you show print listnum [1:10:2] and say the 2 represent how many you want to skip. But in fact you don't skip 2 but take steps of two so you print every second one.
I am not even sure why i comment on this little thing but i just thought about it...
I love that you don't say "aaaa" or every third word as most tutorials do btw :-)

_TheDudeAbides_
Автор

@22ecic I have a tutorial on python 3.0 and up. It's called python how to program. You can find it on my YouTube channel. That will solve your problem

derekbanas
Автор

Thanks for the Tutorial, this was the simplest and easy way to understand a concept.Good work .Thanks for saving lot of time.

scriptmastervel
Автор

5:35 - it's also possible to specify "::"; if one wish to skip x amount of characters without specifying begin/end numbers. Thanks for the vids :)

wstam
Автор

congratulations on ur first like my computer programming teacher is making our class watch ur tutotials very useful videos :)

xDmOrgZx
Автор

Good tutorial on lists great way to show different methods. Good job once again.

gent
Автор

@xDmOrgZx Wow that's very cool! I'm glad you and your teacher likes them. There are many more coming. OOP starts later today

derekbanas
Автор

Well, what you said is true, but it will resolve to the same thing (as if you're deleting an item from a list by index), for example:
list = [ 'spell', 'doom', 'warcraft', 'dawn' ]
list.remove (list[1]) == list.remove('doom') which will both chop out 'doom' :-)
(correct me if I'm wrong)

vexedev