General description Python


Python is a simple, easy to learn, powerful, high-level general purpose programming language.

  • Because code is automatically compiled to bytecode and executed, Python is suitable for use as a scripting language, Web application implementation language etc.
  • Because Python can be extended in C and C++, Python can provide the speed needed for even compute intensive tasks.
  • Because of its strong struvturing constructs (nested code blocks, functions, classes, modules and packages) and its consistent use of objects and object-oriented programming, Python enables us to write clear, logical applications for small and large tasks.

Read more

Important features of Python


  • Built-in high level data types: strings,lists, dictionaries etc
  • The usual control structures: if, if-else, if-elif-else, while, plus a powerful collection iterator(for)
  • Multiple levels of organizational structure: ,modules,packages
  • Object-oriented: Python provides a consistent way to use objects ie everything is an object. And in Python, its easy to implement new object types(called classes in object-oriented programming)
  • Easy to inetrface with C++(via SWIG)
  • Easy to inetrface with C/ObjC/java/Fortan
  • Great interactive environment

Read more

Enough to undserstand the code


Basic Datatypes

  • Integers(default for numbers) z=5/2 #Answer is 2, inetger division
  • Floats x=3.156
  • Strings
  • Can use "" or '' to spedify "abc" 'abc' (samething)
  • Unmatched can occur within the string. “matt’s”
  • Use triple double-quotes for multi-line strings or strings than contain both ‘ and “ inside of them: “““a‘b“c”””
Read more