American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

3 PM – OOP Python – Nathaniel

October 30, 2021 @ 3:00 pm - 4:00 pm

Today we:

  1. Went over MonsterInheritanceSystem program
  2. Added the Godzilla class to the program
  3. Created the Hangman class

 

Homework:

Create a class called "Counter". And have an attribute of a count (starts at 0).
Create an application loop that runs the program of allowing a user to
increase count by whatever number they input. There should be one other helper methods:

def increase(x)


Example program run:

Welcome to the Counter game!
Please enter a number that you would like to add from the current count

>> 3
Count is now at a value of 3!

>> 9
Count is now at a value of 12!

>> 100
Count is now at a value of 112!

Details

Date:
October 30, 2021
Time:
3:00 pm - 4:00 pm
Event Category:
Verified by MonsterInsights