Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Ira Krakow's Python 3 Tutorial Part 5 (List Methods)

Loading...

Sign in or sign up now!
2,694
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 10, 2010

Discuss this video at: http://forum.irakrakow.com/viewtopic.php?f=31&t=330

In Part 4, we saw how to use slicing to work with parts of a string, list, or tuple, as well as how to insert, delete, and add to these types of variables. Python has a number of built in methods -- also called functions -- that can do these operations in a way that makes the code easier to read. Sometimes it's a bit hard to understand all those colons and square brackets, and it's easier to use words like append, remove, or insert, which are, indeed the names of methods associated with lists. We'll also see how these easy to understand methods can be used to build a simple stack (where the last element added is the first element retrieved) or queue (where the first element added is the first element retrieved). We'll also discover how to sort, count, and locate items in a list. Along the way, we'll learn about the autocomplete feature of Blender's Python console, a handy feature that documents available methods.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (irakrakow)

  • what other commands are there then Print?

  • print() is actually a function. There are a whole lot of other functions. To start, my next tutorial will be on how to define functions and where to look for them. Stay tuned.

  • Thanks for your kind words. Yes, it's in HD now. It takes about 30 minutes or so for Youtube to process it into HD. Try watching it again.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • hello, I follow your online courses, are well made, explain well, but it looks bad, at least here on youtube.

  • mary had a lamb a dog a pig a cat a fish a cow and they all lived on a farm.but she kept taking them to school and kept tying it to a lampost and all the kids kept kicking the animals head in untill she was left with a lamb then it was against the rules to bring animals to school but she still brought the sheep and the kids killed that to. poor sheep lol

  • that sort worked truely?

  • ahhhhh ok ill be waiting =D

  • Mr.Krakow ,I always enjoy your tutorial. thank you very much.

    I hope this video also has high resolution options as your previous videos!

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more