Skip to content

AdaGold/duck-typing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duck Typing

Small repository demonstrating how duck typing in python allows modules to work work with instances without needing to import.

One-Time Setup

Follow these directions once, when retrieving this repository.

  1. Navigate to your projects folder named projects
$ cd ~/Developer/projects
  1. In Github click on the "Fork" button in github and fork the repository to your Github account. This will make a copy of the repository in your github account.

Fork Button

  1. "Clone" (download a copy of this repository) into your projects folder. This command makes a new folder called duck-typing, and then puts the repository into this new folder.
$ git clone ...

Use ls to confirm there's a new repository folder

  1. Move your location into this repository folder
$ cd duck-typing
  1. This repository does not need a venv, and has no dependencies to be installed (using pip).

Summary of one-time repository setup:

  • cd into your projects folder
  • Clone the repository onto your machine
  • cd into the duck-typing folder

Running the example

The sample code can be run with the following command

python3 main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages