Anthony Ob wrote:

> puts name = 'Prune'

> puts name[4]
> # We can add anything!
> name[5] = 4.33


you have reassigned name to a string. Now you are inputting a float into 
it.
That line is an error.

See this (from irb):

ruby-1.9.2-head > name = "avcddf"
 => "avcddf"
ruby-1.9.2-head > name[4]
 => "d"
ruby-1.9.2-head > name[4]=0.3
TypeError: can't convert Float into String
        from (irb):67:in `[]='
-- 
Posted via http://www.ruby-forum.com/.