Total Pageviews

Sunday, January 15, 2012

This is a website that I made in  8th Grade for English Class: https://sites.google.com/site/animalfarmsummary/

The spacing might be a little off as I designed it to fit on my screen.




https://sites.google.com/site/animalfarmsummary/

Friday, January 13, 2012

Python (Programming Language)


Python (Programming Language) Noah Mark

What is it?
Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability.  Python claims to "[combine] remarkable power with very clear syntax", and its standard library is large and comprehensive. Its use of indentation for block delimiters is unique among popular programming languages.

When and where is it used?
Python is often used as a scripting language for web applications, e.g. via mod_wsgi for the Apache web server. With Web Server Gateway Interface, a standard API has been developed to facilitate these applications. Web application frameworks like Django, Pylons, TurboGears, web2py, Flask and Zope help support developers in the design and maintenance of complex applications. Libraries like NumPy, SciPy and Matplotlib allow Python to be used effectively in scientific computing.
Python is a high-level general-purpose programming language that can be applied to many different classes of problems. 

Who uses it?
http://www.blogger.com/blogger.g?blogID=7149291111971349720#editor/target=post;postID=7953433164166042840


Who designed it?
Guido van Rossum


What does the code look like?
Statements and control flow
Python's statements include (among others):

  • The if statement, which conditionally executes a block of code, along with else and elif (a contraction of else-if).
  • The for statement, which iterates over an iterable object, capturing each element to a local variable for use by the attached block.
  • The while statement, which executes a block of code as long as its condition is true.
  • The try statement, which allows exceptions raised in its attached code block to be caught and handled by except clauses; it also ensures that clean-up code in a finally block will always be run regardless of how the block exits.
  • The class statement, which executes a block of code and attaches its local namespace to a class, for use in object-oriented programming.
  • The def statement, which defines a function or method.
  • The with statement (from Python 2.5), which encloses a code block within a context manager (for example, acquiring a lock before the block of code is run, and releasing the lock afterwards).
  • The pass statement, which serves as a NOP and can be used in place of a code block.
  • The assert statement, used during debugging to check for conditions that ought to apply.
  • The yield statement, which returns a value from a generator function. (From Python 2.5, yield is also an operator. This form is used to implement coroutines -- see below.)

Each statement has its own semantics: for example, the def statement does not execute its block immediately, unlike most other statements.

Tutorial: http://www.youtube.com/watch?v=jIS8ugBTNhA