Contains all the daily outputs as per the assignments of the Andela35 program
Google landing page built with HTML for the display, CSS for styling and Javascript for interactivity. Media-queries used for responsiveness.
A user can type in content to the search box and receive the what they typed in a modal box. If a user clicks the search button without typing anything, they receive an error message.
Hosted on Git Hub pages this link.
Classes to illustrate OOP using python
Pets class that holds instances of dogs Dog class (does not inherit from the Pets class); saved in the pets_class.py file which holds:
- Three dog instances assigned to an instance of the Pets class.
- Instance attribute is_hungry = True.
- Method called eat() which changes the value of is_hungry to False when called. The final output looks like this:
I have 3 dogs.
Tom is 6.
Fletcher is 7.
Larry is 9.
And they're all mammals, of course.
My dogs are not hungry.
Method called walk() in both the Pets and Dog classes so that when you call the method on the Pets class, each dog instance assigned to the Pets class will walk(); saved in the dogs_walking.py file. The output looks like this:
Tom is walking!
Fletcher is walking!
Larry is walking!
Python files to illustrate TDD with pytest