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.
- 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 intest_triangle.py
.
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.