Study

PYTHON KEYWORDS

  •   0%
  •  0     0     0

  • It terminates the current loop and resumes execution at the next statement. It can be used in both while and for loops.
    Break
  • It can be used to erase an item at a given index and to remove slices from a list.
    del
  • It is used to make code in one module available in another.
    Import
  • It is used to define a null value, or no value at all. It is not the same as 0, False, or an empty string.
    None
  • It is used for decision-making operations. It contains a body of code which runs only when the condition given in the statement is true.
    If
  • It is a control flow statement which allows code to be executed repeatedly, depending on whether a condition is satisfied or not.
    While
  • It is used in conditional statements (if statements), and decides what to do if the condition is False.
    Else
  • It is used to end the current iteration in a for loop or a while loop and goes to the next iteration.
    Continue
  • It is used to produce an exception to interrupt the code execution.
    Raise
  • This block lets you check some code for errors.
    Try
  • it is used to end the execution of the function call and gives the result to the caller.
    return