پیشنهاد فرادرس

آموزش Python Collections

دسته بندی ها: آموزش پایتون (Python) ، آموزش های TreeHouse

ما می توانیم با اعداد، رشته ها، لیست ها، بولین ها و منطق اساسی در پایتون آشنا شویم. با این وجود، در نهایت، ما برای داده خود نیاز به کانتینرهای پیچیده تری خواهیم داشت. ما همچنین نیاز به کنترل بیشتری بر لیست ها و رشته ها داریم. در این دوره دیکشنری ها، مجموعه ها، اصطلاحات، Slices و نحوه کنترل بیشتر بر لیست ها در برنامه های پایتون را فرا خواهید گرفت.

سرفصل:

  • ایجاد لیست ها
  • رشد لیست ها
  • ترکیب لیست ها
  • اپلیکیشن لیست خرید
  • متد های ایجاد / گسترش لیست
  • حذف آیتم ها از لیست A
  • Disemvowel
  • پاپ
  • حذف آیتم ها از یک لیست
  • Slices
  • معرفی Slices
  • Slicing با A Step
  • توابع Slice
  • حذف و جایگزینی Slices
  • حذف slices
  • sillyCase
  • دیکشنری ها
  • مبانی دیکشنری
  • مدیریت کلیدی
  • بسته بندی و بازکردن دیکشنری ها
  • Tuples
  • و غیره

 

Python Collections Course Publisher:TeamTreeHouse Author:Kenneth Love Level:Beginner

We can get pretty far in Python with numbers, strings, lists, booleans, and basic logic. Eventually, though, we're going to need more complex containers for our data. We're also going to need more control over lists and strings. In Python Collections, I'll teach you about dictionaries, sets, tuples, slices, and how to exert even more control over lists in your Python programs!
About this Course
We can get pretty far in Python with numbers, strings, lists, booleans, and basic logic. Eventually, though, we're going to need more complex containers for our data. We're also going to need more control over lists and strings. In Python Collections, I'll teach you about dictionaries, sets, tuples, slices, and how to exert even more control over lists in your Python programs!
What you'll learn
Lists
Dictionaries
Tuples
Sets
Variable packing and unpackingLists
Lists are an old friend to anyone that's done even a little Python. They have a lot to offer us, though, so let's explore their methods and uses a bit further.
11 steps
Let's Review Lists
1:37
Creating lists
1 objective
Growing Lists
6:04
Combining Lists
3 objectives
Shopping List App
Shopping List Take Three
10:11
List creation/extension methods
6 questions
Removing Items From A List
5:57
Disemvowel
1 objective
Pop
6:53
Removing items from a list
2 objectives
Extra Credit
Take our shopping list script even further if you want. Some suggestions:
Make it possible to move items from one position to another
Change the formatting of the list display
Create a CLEAR command that removes everything from the list
Slices
We don't always want the entirety of a list or string. Sometimes we just want part of it, and Python calls these sub-string or sub-lists "slices"
8 steps
Introduction To Slices
6:27
Back and Forth
3 objectives
Slicing With A Step
3:57
Slice Functions
4 objectives
First Slice
4 questions
Deleting Or Replacing Slices
4:06
Deleting slices
6 questions
sillyCase
1 objective
Extra Credit
Spend plenty of time working with slices. See if you can blend two very different lists together using slices.
Dictionaries
Unlike their hard-backed namesakes, Python's dictionaries are easy to create, update, and take advantage of.
9 steps
Introduction To Dictionaries
4:49
Dictionary Basics
2 objectives
Key Management
3:57
Dict Basics
7 questions
Packing and Unpacking Dictionaries
6:01
String Formatting with Dictionaries
1 objective
Dictionary Iteration
4:04
Word Count
1 objective
Teacher Stats
5 objectives
Tuples
Quite possibly the most common data type (behind the scenes, at least) in all of Python, tuples, which act like immutable lists, are a great tool for every Pythonista.
7 steps
Introduction To Tuples
5:23
Two-ples
5 questions
Tuple Swapping
4:55
Packing
1 objective
Multiple Return Values
5:48
Stringcases
1 objective
Combo
1 objective
Sets
Not as common of data type, sets are, nevertheless, crucial for certain parts of Python development.
6 steps
Set Basics
4:29
First Sets
3 objectives
Set Math
3:48
Set Math
2 objectives
Out Of This Word Game
11:20
Review: Sets
5 questions
Dungeon Game
With all of your new Python tools, I think it's time to build another game together.
9 steps
The Plan
1:52
Dungeon Entrance
9:23
random.sample
1 objective
Movement
8:18
Hit points
1 objective
Cartographer
8:03
Line endings
1 objective
Win or Lose
6:30
Review: Python Collections
6 questions
Extra Credit
Make some or all of the following changes to your game:
Change your player to a dictionary with a key that holds onto where the player has been. Then, when drawing the map, show . for every cell they've been in.
Add more cells.
Move the monster randomly after the player moves.
Show the monster.
Keep a scoreboard for multiple plays.
Add a second or third monster.
Add a debug mode to show where the monster(s) and door are all the time.

پیشنهاد فرادرس

لینک های دانلود حجم فایل: 439.0MB TeamTreeHouse Python Collections Course_git.ir.rar
captcha