Programming for Kids - ZedLX

The Easiest Way to Learn Computer Programming, for Free

Named Arguments [1/9]

Named Arguments

Arguments of a println statement must be separated by comma symbols (,). The first statement contains 3 arguments. The arguments are:

  • "A day has "
  • 24*60
  • " minutes"

Named argument fg of println statement can be used to change the foreground color.

Names of named arguments must be followed by a colon symbol (:).

When a named argument is used in a println statement, all arguments of the println statement must be enclosed inside square brackets [].