1.6: Examples and Exercises

Pharo by Example 5.0 · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY-SA 3.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    1.6: Examples and Exercises

    We have tried to provide as many examples as possible. In particular, there are many examples that show a fragment of code which can be evaluated. We use a long arrow to indicate the result you obtain when you select an expression and from its context menu choose print it:

    3+4
    >>> 7 "if you select 3+4 and 'print it', you will see 7" 
    

    In case you want to play with these code snippets in Pharo, you can download a plain text file with all the example code from the Resources sidebar of the book’s web site: http://books.pharo.org.


    This page titled 1.6: Examples and Exercises was last modified on Sat, 19 Dec 2020 08:13:37 GMT and is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by via source content that was edited to the style and standards of the LibreTexts platform.