5 ms·
I'd like to learn from this book. > If you ask Pyret for the value of this program, it will unsurprisingly tell you that it’s 3. I am not sure how to do that.
by Pyret 12y ago
I'd like to learn from this book.
> If you ask Pyret for the value of this program, it will unsurprisingly tell you that it’s 3.
I am not sure how to do that. In [this tutorial](http://www.pyret.org/docs/latest/A_Tour_of_Pyret.html#%28part._.Testing_and_.Assertions%29 http://www.pyret.org/docs/latest/A_Tour_of_Pyret.html#%28par...) everything is a test. Is the program 3 supposed to be run as a test as well? Just running 3 in the editor does nothing. Where can I read up on Pyret syntax so i can follow this book?
- shriramkmurthi 12y agoSorry about the confusion. Looks like you've already found https://code.pyret.org/editor https://code.pyret.org/editor (but the link is here for the information of others). You can run programs by typing them in the interactions area (a.k.a. REPL), which is the area on the right. To wit: > 3 3 > 1 + 2 3
- Pyret 12y agoI see. I was typing my code on the left half of the window and expecting the result show up on the right half. It works now. Thank you.