Make a program that parse a CSV file and apply the following rules:
- X, Y and Z combinations must be unique
- If X, Y or Z is below 0, set it to 0
Errors should be printed to stderr
Name | Type |
---|---|
X | int64 |
Y | int64 |
Z | int64 |
Example data is located in test_data/
- Write unit tests that proves your solution works
- Make the program compute the area of a triangle with the side lengths X, Y and Z for every row
- Write a function that reverses the characters of a string.
- Write a function that reverses the words(separated by spaces) of a string.
- Write a function that prints the numbers from 1 to 100. But for multiples of 3 print “Fizz” and for the multiples of 5 print “Buzz”. For numbers which are multiples of both 3 and 5, print “FizzBuzz”.
- Write a function that calculates the angle between the hour and minute hands on a clock.
- Write a function that hash a password to be stored in a database.