Parens: println("$(bird)s are birds")

On Sun, Feb 15, 2015 at 6:40 PM, Aura <[email protected]> wrote:

> how can we add a suffix (such as a plural "s") to a variable that we call
> in println?
>
> ex:
>
> *code*
> for bird in ["crow", "parrot", "bluejay"]
>     println("$bird are birds")  #how do we add an "s" to $bird without
> having a space inbetween
>
> *desired outcome:*
> crows are birds
> parrots are birds
> bluejays are birds
>

Reply via email to