Referenced from lesson Starting to Program
Pyret also has operators that work on Booleans. For each expression below, write down your guess about what it will evaluate to. Then type them in and see if you were right!
Expression |
Guess what it will evaluate to |
Does Pyret Agree? |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). Bootstrap:Integrated Oklahoma by Jen Poole is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.