Repo to Learn Ruby. PR's are welcome.
You may notice C++ files or other languages. That is because sometimes I write a solution in a more familiar language first.
Input/output is similar to Python, Bash, and C.
word = gets
puts "Hello, World!"
The worst part in any language.
Luckily, strings in Ruby can be manipulated similarly to Python via square bracket indexing (i.e. [i]
). For example:
% ruby
word = gets
puts word[0]
^D
lol
l