Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Basic Object-Oriented Python!
You have completed Basic Object-Oriented Python!
Preview
Tackle creating the grid.
Accomplished in this Video
- Created the grid using 2 methods
-
create_row- found all of the cards in the given row
- added either spaces or the word to the row to show which ones have been matched
-
create_grid- created the header
- used the row method to create all 4 rows and print them out to the console
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Next, let's tackle creating the grid.
0:00
In order to create our grid,
I think creating the rows in their own
0:01
separate method will help keep
things a bit cleaner and clear.
0:06
Create a method called create_row.
0:11
We'll pass in the row number so
we know which row to create.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up