~gasp-lessons-team/gasp-lessons/gasp-lessons

« back to all changes in this revision

Viewing changes to gasp_course/source/C-conds.rst

  • Committer: Jeffrey Elkner
  • Date: 2019-03-08 19:56:03 UTC
  • Revision ID: jeff@elkner.net-20190308195603-ctiy6u81pqi57g5y
Fix diameter of mouth in sheet 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    True if ``a`` is less than ``b``
48
48
 
49
49
 ``a <= b``
50
 
     True if ``a`` is less than or equal to ``b``
 
50
    True if ``a`` is less than or equal to ``b``
51
51
 
52
52
``a > b``
53
53
    True if ``a`` is greater than ``b``
96
96
``x not in y``
97
97
    True if ``x`` is not equal to any element of ``y``
98
98
 
99
 
an empty list, tuple, or dictionary ( ``[]``, ``(,)``, or ``{}``)
 
99
an empty list, tuple, or dictionary ( ``[]``, ``()``, or ``{}``)
100
100
    Always False
101
101
 
102
102
a list, tuple, or dictionary that is not empty
110
110
--------------------
111
111
 
112
112
You can join conditions together using the words ``and``, ``or`` and ``not``
113
 
So, for instance, ``x<3 and y>6`` is a condition.
 
113
So, for instance, ``x < 3 and y > 6`` is a condition.
114
114
 
115
115
 
116
116
The ``if`` statement