Python Keywords, Concepts, Functions

From Computer Science
Revision as of 21:03, 31 December 2019 by Jkinne (talk | contribs) (Python Keywords)
Jump to: navigation, search

See also Python Programming - Getting Started

Following are terse descriptions for Python3 keywords and commonly used functions. For more information, see w3schools for a bit more explanation and python.org for the language reference.

Python Keywords

  • break - exit the current loop
  • print - function to write to the screen
  • - Text data type
  • - Function to convert a string to an integer
  • - Function to generate a sequence of numbers
  • - Determine whether two objects are the same object(not just value)
  • - To load a module
  • - Declare a function
  • - Loop with only condition
  • - Conditional statements (three keywords)
  • - Function to get the length of a string
  • - Loop with that iterates through a list
  • - Keyword to send a value back from a function
  • - Boolean operator, True only if both sides are True
  • - Boolean operator, True if either side is True
  • - Boolean operator, negates
  • - Boolean values (two keywords)
  • - Remove from a list by position
  • - Handle an exception (2 keywords)
  • - Test if something is inside of a list/string/tuple/dictionary
  • - Special value for a variable that has no value
  • boolean - data type for True and False

Python Commonly Used Functions