Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Python Loops, Functions, and Objects #44

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update objects
spelling and spacing fix
  • Loading branch information
d-0-r committed Jul 13, 2015
commit 0ba8685b65ce7955d322ff3b2de718603840cb82
4 changes: 2 additions & 2 deletions python/objects
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ class Fruit: # class names should always be capitalized
else:
return "The fruit isn't ready yet"

class Watermelon(Fruit): # The new class inherits everythin from the Fruit class
bio = "watermelon" # overwrite the bio attribute for the watermelon class
class Watermelon(Fruit): # The new class inherits everything from the Fruit class
bio = "watermelon" # overwrite the bio attribute for the watermelon class

#To make objects simply assign the class to a variable.