國語(繁體)
登入
Python 與 Trinket.io 和 Google Colab:第 3 部分
我們無法翻譯此文,請刷新頁面並再試一次。
課堂經歷
CONTENT: We will be creating a turn based 'Battle' games where different characters have different abilities. We will be using this project to sharpen the coding skills previously learned as well as an introduction to the principles of object oriented programming. We will learn about objects and classes and we will start by creating a Human class followed by various superhero subclasses. STRUCTURE: The class starts out with sharing and questions. After that, I introduce the topic and...
4 lessons//4 Weeks
Week 1Lesson 1AbstractionWhat are objects and classes? What are the characteristics and behaviors that describe them? We will start by thinking of a Human object that can exist in our battle game. What are the things that describe it? What are the things that it does?Week 2Lesson 2EncapsulationMuch of programming has to do with keeping code organized so that it can be scaled. Encapsulation places code squarely inside the workings of objects and thus leads to more organized code. As our Human object becomes more complex we see that things tend to fall into place more easily.Week 3Lesson 3InheritanceNow that our game is able to match Human objects against Human objects, what about superheros? Inheritance will allow us to define classes/objects in terms of other classes/objects. For example, we will think of a Superman object as Human + Superman things.Week 4Lesson 4PolymorphismThis lesson will allow us to brainstorm and be creative about creating different strategies and moves for our players. Polymorphism will allow us to use the same names for moves that behave differently depending on context.
I've been a computer science teacher for 10 years and have taught Python coding online for the past four years. I have also taught math and computer science at the High School level: AP Calculus BC and AP Computer Science A.
We use trinket.io in this class. Students should not include any personal information in their projects as they can be shared. We also use Colab to showcase our coding materials. It works like our textbook. Colab functions best when used with a gmail account (you can save your own versions of the notebooks).
教師專業知識和證書
2 度
碩士 in 數學 from Harvard University
學士學位 in 數學 from Harvard University
Get $5 off my classes with coupon code MARTY1JBCX5 until Nov 23, 2023 I have been a Computer Science teacher for 10 years. I love art and feel extremely fortunate to be able to teach AI Art at Outschool. It is an incredibly exciting and fast...
團體課
US$17
每週或US$68 用於 4 課程每週上課 x 1 次, 4 週
55 分鐘
有1 為學習者完成此課程
即時視訊會議
年齡: 9-14
1-8 每班學員人數