Look Up Another Term

Definition: Python


A popular, object-oriented scripting language widely used for writing artificial intelligence (AI) applications. Python is also used to develop system utilities, Internet scripts, as well as to integrate components in C and C++. Created by Guido van Rossum in Amsterdam in the early 1990s, it was named after the BBC comedy series "Monty Python's Flying Circus." Python is an interpreted language that compiles to bytecode and requires a "virtual machine" for runtime execution. It uses elements from C, C++ and Modula and supports interfaces to popular functions and libraries such as Unix sockets, the Tk GUI library, Microsoft Foundation Classes (MFC) and X11.

The following example converts Fahrenheit to centigrade in Python.

  printf("Enter Fahrenheit: ")
  fahr = float(input)
  cell = ((fahr -32) * 5 / 9, 1)
  printf("Celsius is {}".format(cell))