Skip to content

Exercise 1: Convert input from str -> float #62

@oyvindeide

Description

@oyvindeide

In:

def read_coordinates(file_name: Union[str, Path]) -> List[Tuple[str, str]]:
we are reading a file and turning it into a list of coordinates. However that function returns a list of tuples of strings. As we are doing calculations on the results, we would like it to return float values instead of strings.

  1. Run the test
  2. Modify the tests to be red, and confirm that you get the desired result by running the tests
  3. Refactor the code until you are back to green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions