This repository contains a few basic Python and R scripts, plus unit tests.
The scripts live in ./scripts:
string_reverse.py: reverses a stringis_even.py: checks if an integer is evenadd_numbers.R: adds two numbersstring_reverse.R: reverses textadd_numbers.py: adds two numbersis_even.R: checks if an integer is even
From the repository root, execute:
python scripts/add_numbers.py 2 3
python scripts/string_reverse.py hello
python scripts/is_even.py 8To run the R versions:
Rscript scripts/add_numbers.R 22 33
Rscript scripts/string_reverse.R hello
Rscript scripts/is_even.R 88python -m unittest discover -s tests -q