Course of Raku / Essentials / Functions essentials / Built-in functions for printing / Exercises
Compare say and
put
Problem
Write a program that allows you to see the differences between
say and put for the data types we’ve learned
so far: Int, Rat, Num,
Str, Array, List,
Range, and Hash. For scalar items, use typed variables.
Example
The program should print at least one result for every data type
using both say and put.
$ raku compare-say-and-put.raku
256
256
0.125
0.125
. . .Solution
Course navigation
← note
| Solution:
Compare say and put →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська