Level 98 Level 100
Level 99

[Quiz] Reserved Words


22 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
and
Called Logical AND operator. If both the operands are true then then condition becomes true.
assert
Used while debugging to check for conditions that ought to apply
break
Used to exit a for loop or a while loop
class
Template for creating user-defined Objects
continue
Terminate the smallest enclosing loop and immediately continue with the next iteration of the loop.
def
Defines a function or method
del
deletes an item from a list
elif
- a statement following an if statement and its block of code that has its own conditions that if met will have its code executed. elif is only considered if its previous if statement…
else
- a statement following an if statement and code, or elif statement and code that is gives a default action if the previou…
False
denotes a special object, the sole instance of FalseClass. false and nil are the only objects that evaluate to Boolean falsehood in Ruby (informally, that cause an if condition to fail.)
for
- a way of creating loops. Syntax is: for blahVar in blahList: Use colon at end of statement and indent code to be included in the loop under the for statement. The second variabl…
in
Evaluates to true if it finds a variable in the specified sequence and false otherwise. x in y, here in results in a 1 if x is a member of sequence y.
is
Evaluates to true if the variables on either side of the operator point to the same object and false otherwise. x is y, here is results in 1 if id(x) equals id(y).
None
value that means nothing there null in other languages
not
Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false.
or
Called Logical OR Operator. If any of the two operands are non zero then then condition becomes true. (a or b) is true.
pass
Needed to create an empty code block
print
the command that causes data to be displayed in the console
return
Inside a method definition, executes the ensure clause, if present, and then returns control to the context of the method call. Takes an optional argument (defaulting to nil), which serves as the return valu…
true
t/f: unlike strings, numbers are NOT enclosed in quotation marks
while
Takes a condition argument, and executes the code that follows (up to a matching end delimiter) while the condition is true.
with
Encloses a code block within a context manager