Coder Social home page Coder Social logo

python-examples's Introduction

Python Examples


Introduction

When I was learning Python I had to go all over the web to find the examples I needed. I decided to put some common examples here to make it easier for others who are learning Python to find. If these scripts are helpful or if you have suggestions for other examples that should be added, please let me know. Please note all of my scripts are compatible with the 2.x version of Python and may need to be modified to work in the 3.x version of Python. There are significant differences in the two versions of Python. If you need help choosing which version to use see http://wiki.python.org/moin/Python2orPython3. I use the 2.x version of Python because it is the default version in Ubuntu and BT5.

This is not meant to be a Python tutorial. If you need a tutorial please check out the following resources:

Examples

  • read_file.py - opens a file, reads each line, and processes the line.
  • write_file.py - write data to a file
  • read_write_file.py - opens two files, read from one, write to the other
  • server.py - Python server with sockets
  • client.py - Python client with sockets
  • read_parse_url.py - open a url and parse data using lxml and BeautifulSoup
  • regular_expression.py - the basics of using regular expressions
  • read_xml_file.py - open an xml file and parse the data using ElementTree

Coming Soon

  • Need some ideas for examples.

python-examples's People

Contributors

averagesecurityguy avatar seabre avatar

Watchers

James Cloos avatar Martin Herbert Raj  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.