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

Called Logical AND operator. If both the operands are true then then condition becomes true.
Used while debugging to check for conditions that ought to apply
Used to exit a for loop or a while loop
Template for creating user-defined Objects
Terminate the smallest enclosing loop and immediately continue with the next iteration of the loop.
Defines a function or method
deletes an item from a list
- 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…
- a statement following an if statement and code, or elif statement and code that is gives a default action if the previou…
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.)
- 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…
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.
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).
value that means nothing there null in other languages
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.
Called Logical OR Operator. If any of the two operands are non zero then then condition becomes true. (a or b) is true.
Needed to create an empty code block
the command that causes data to be displayed in the console
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…
t/f: unlike strings, numbers are NOT enclosed in quotation marks
Takes a condition argument, and executes the code that follows (up to a matching end delimiter) while the condition is true.
Encloses a code block within a context manager