Skip to content

Missing Solution in Chapter 02 #125

@telenieko

Description

@telenieko

Hi. Just found the book and taking a quick look. Looks funny! Noticed that:

Chapter 02 has three exercises:

<section>
<h3>Exercises</h3>
<ul>
<li>If we store the number of seconds in a day using this code: <code>seconds = 86400</code>, calculate using that
variable how many hours there are in 30 days.</li>
<li>Create a variable called <code>name</code>, store a string in it and place the value of that variable in another
string.</li>
<li>The line <code>5 / "four"</code> shows an error. Think about why this error might happen.</li>
</ul>
</section>

But the solutions have only two. The second exercise is missing.

Maybe:

name = "Snoopy"
greeting = "Hello, #{name}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions