Skip to content

domika/PythonCodingExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Coding Exercise

String Calculator

Using Python with a Test Driven approach, create a simple String Calculator which covers the following requirements:

  1. Adds numbers present in the input, e.g "1,2" = 3, "10,4" = 14
  2. Treats empty or null input as zero, e.g "" = 0, null = 0
  3. Supports different delimiters, e.g "1,2,3", "1 2 3"
  4. Does not support negative numbers
  5. Ignores numbers greater than 100

Usage:

python coding_task

Run unit tests:

python -m pytest

About

Python Coding Exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages