An open API service indexing awesome lists of open source software.

https://github.com/knapply/rversuspython

A collection of exercises comparing R and Python by demonstrating how each accomplishes the same task.
https://github.com/knapply/rversuspython

Last synced: 4 months ago
JSON representation

A collection of exercises comparing R and Python by demonstrating how each accomplishes the same task.

Awesome Lists containing this project

README

        

RversusPython
================
Brendan @syknapptic Knapp

- [Exercises](#exercises)
- [1. Output](#output)
- [2. Print "CS"](#print-cs)
- [3. Input](#input)
- [4. Print "C" with Input](#print-c-with-input)

This is a collection of exercises comparing R and Python by demonstrating how each accomplishes the same task. Despite the name, this isn't a competition; they're just tools.

Instead, the goal is to provide a basic resource that walks through some fundamentals in each language (and admittedly as an opportunity for me to "relearn" Python and learn more about R).

Exercises
=========

1. Output
---------

- Program to show output
- [p1\_output.py](Python/p1_output.py)
- [p1\_output.R](R/p1_output.R)

2. Print "CS"
-------------

- Write a program that prints out "CS!" in large block letters inside a border of `***`
- [p2\_print\_CS.py](Python/p2_print_CS.py)
- [p2\_print\_CS.R](R/p2_print_CS.R)

3. Input
--------

- Take some user input and perform some operations before providing output
- [p3\_input.py](Python/p3_input.py)
- [p3\_input.R](R/p3_input.R)

4. Print "C" with Input
-----------------------

- Write a program that prints out "CS!" in large block letters inside a border of `***`, using user input for letter selection.
- [p4\_print\_C\_any\_letter.py](Python/p4_print_C_any_letter.py)
- [p4\_print\_C\_any\_letter.R](R/p4_print_C_any_letter.R)





> Image credit to someone who cropped it from someone who copied it from someone who posted it somewhere on