RvN-R / triangle-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Triangle Function

I wrote a function that takes three values (a,b,c) and returns a string detailing what type of triangle it is Equilateral, Isosceles or Scalene.

Should you try and pass a string instead of an integer, or a integer less than 1 the function will return a string saying Invalid.

Run Tests

  • Confirm python is installed on your machine by running python --version in your terminal
  • If its not installed go to Python to download it.

  • With python installed run python test_triangle.py in the terminal to run the tests found in test_triangle.py.

Matrix Function

I made a start on a few functions that attempt to plot ascii characters on a 8x8 matrix LED display using x and y coordinates stored in a tuple. I wasn't able to complete this, but I am hopeful the code I was able to write gives an indication of the direction I was going in.

About


Languages

Language:Python 100.0%