I'm trying out some sample problems from a learn Ruby book and I'm getting a syntax error: unexpected keyword_do_block.
I have written similar code a billion times before and see nothing wrong (maybe I'm just daft tonight.) Can anyone see what I'm doing wrong?
The code:
temp = ["34","35","36","45","534","86","443","54","23","54","75","54","73"]
temp.each |e| do
fahrenheit = (e * 9 / 5) + 32
puts fahrenheit
end