Skip to content

ikostan/Exercism_Python_Track

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Build Status codecov Codacy Badge Maintainability Test Coverage License: Unlicense Maintenance Known Vulnerabilities

Exercism exercises in Python

About Exercism

Exercism is an online platform designed to help you improve your coding skills through practice and mentorship.

Exercism provides you with thousands of exercises spread across numerous language tracks. Once you start a language track you are presented with a core set of exercises to complete. Each one is a fun and interesting challenge designed to teach you a little more about the features of a language.

You complete a challenge by downloading the exercise to your computer and solving it in your normal working environment. Once you've finished you submit it online and one of our mentors will give you feedback on how you could improve it using features of the language that you may not be familiar with. After a couple of rounds of refactoring, your exercise will be complete and you will unlock both the next core exercise and also a series of related side-exercises for you to practice with.

Exercism is entirely open source and relies on the contributions of thousands of wonderful people.

Exercism is designed to be fun and friendly, and we place a strong emphasis on empathetic communication.

Sign up and have fun. Exercism is 100% free :)

Getting Started

We know using a new product can be daunting, and Exercism is a little complicated. So here's a really simple set of instructions to get you started. Click here for help

This guide was created in order to help you get started learning with Exercism. Answer a few questions, follow a few instructions, and you should be ready in no time!

Download exercise

  • You should now have the CLI installed.
  • Download the exercise using:
exercism download --exercise=<exercise name> --track=python

Submit your solution

  • You should now have the CLI installed and the exercise downloaded to your computer.
  • Solve the exercise and then upload it using:
exercism submit /PATH/TO/SOLUTION
  • In your web-browser, go back to the language tracks page, choose your exercise and the exercise you've just worked on. You will now see your solution online and notice that it is awaiting a mentor.

Testing

All exercises must be compatible with Python versions 2.7 and 3.4 upwards.

To test a single exercise (e.g., with Python 2.7):

python2.7 test/check-exercises.py [exercise-name]

To test all exercises (e.g., with Python 3):

python3 test/check-exercises.py

Code Style

The Python code in this repo is meant to follow the PEP8 style guide (a stylized version).

This repo uses flake8 with default settings to enforce the coding standard.

Setting up Python3 virtual environment on Windows machine

  1. open CMD
  2. navigate to project directory, for example:
cd C:\Users\superadmin\Desktop\Python\CodinGame
  1. run following command:
pip install virtualenv
  1. run following command:
virtualenv venv --python=python

Python3 virtual environment activation on Windows machine

On Windows, the equivalent activate script is in the Scripts folder.

> \path\to\env\Scripts\activate

And type 'deactivate' to undo the changes.

Source

How to delete multiples files in Git

  • In the command-line, navigate to your local repository.
  • Ensure you are in the default branch:
git checkout master
  • The rm -r command will recursively remove your folder:
git rm -r folder-name
  • Commit the change:
git commit -m "Remove duplicated directory"
  • Push the change to your remote repository:
git push origin master

How to fix in case .gitignore is ignored by Git

Even if you haven't tracked the files so far, Git seems to be able to "know" about them even after you add them to .gitignore.

NOTE: First commit your current changes, or you will lose them.

Then run the following commands from the top folder of your Git repository:

git rm -r --cached .
git add .
git commit -m "fixed untracked files"

More help

pip nstallation and upgrade