473,385 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Anyone have any example python code?

tharden3
916 512MB
I'm trying to learn the language... anyone have some code that they can post? simple code? difficult code? I just want to learn from examples. Any code that does something interesting/cool?
Jul 14 '08 #1
5 1413
jlm699
314 100+
I cannot recommend this enough, but if you're looking for some great learning examples you should head on over to diveintopython.org and pick up a copy of the book for download. When you download the pdf file you will get a ton of example code.

If you're looking for example wxPython code head on over to the wxPython download page and download the wxPython docs, demos and tools package, which will give you an interactive demo that has a built-in code display page for each demo so that you can quickly copy and paste into your own programs.
Jul 14 '08 #2
tharden3
916 512MB
I cannot recommend this enough, but if you're looking for some great learning examples you should head on over to diveintopython.org and pick up a copy of the book for download. When you download the pdf file you will get a ton of example code.

If you're looking for example wxPython code head on over to the wxPython download page and download the wxPython docs, demos and tools package, which will give you an interactive demo that has a built-in code display page for each demo so that you can quickly copy and paste into your own programs.
ok, cool. thanks. I learn so much better by looking at example code rather than by reading text about what to do.
Jul 14 '08 #3
Hi,

I would like to point out something. If you are completely new to python, then use Byte of Python ( by Swaroop C.H.). I too used it when I started python. In general, it is ALWAYS recommended to read Byte of Python first, then read Diveinto Python. I was advised the same by one of my seniors, working for Fedora, well known among us for his Python knowledge. Further, even Byte of Python recommends using Dive Into Python, AFTER having read it. Byte of Python is much simpler and shorter.

One further advice, always have a python interpretor ready, run & test ex, if you are going to learn through examples.

Another tutorial is ThinkCSPy (How to think like a computer scientist - Python), Charming Python (most probably, it's by IBM [i'm not sure], version specific tutorial from www.python.org ( they are really good after you have earned some experience).

I keep all these handy.

Bye.
Jul 22 '08 #4
tharden3
916 512MB
Hi,

I would like to point out something. If you are completely new to python, then use Byte of Python ( by Swaroop C.H.). I too used it when I started python. In general, it is ALWAYS recommended to read Byte of Python first, then read Diveinto Python. I was advised the same by one of my seniors, working for Fedora, well known among us for his Python knowledge. Further, even Byte of Python recommends using Dive Into Python, AFTER having read it. Byte of Python is much simpler and shorter.

One further advice, always have a python interpretor ready, run & test ex, if you are going to learn through examples.

Another tutorial is ThinkCSPy (How to think like a computer scientist - Python), Charming Python (most probably, it's by IBM [i'm not sure], version specific tutorial from www.python.org ( they are really good after you have earned some experience).

I keep all these handy.

Bye.
Very cool. Thanks for the suggestions.
Jul 22 '08 #5
Very cool. Thanks for the suggestions.
Hi,

My official, serious reply for this would be :

'Anytime bro, consider me as a google search ( HEY NOT IN FUNCTIONALITY, BUT IN ACCESSIBILITY...)

If you ever need any more help, just type in.

Bye.
Jul 22 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Brandon J. Van Every | last post by:
Is anyone using Python for .NET? I mean Brian's version at Zope, which simply accesses .NET in a one-way fashion from Python. http://www.zope.org/Members/Brian/PythonNet Not the experimental...
1
by: Torsten Mohr | last post by:
Hi, i have written a DLL that implements some C++ classes and their methods. Now i would like to make the classes and their methods known to python. Is there some example code available on...
1
by: Chuck Amadi | last post by:
A little help has anyone used the email-dir.py Email Module ,I have downloaded the example and would like some pointers to get it going . For example Have I got to add any parameters to python...
19
by: Leif K-Brooks | last post by:
Has anyone ever tried implementing a simple unstructured BASIC dialect in Python? I'm getting interested in language implementation, and looking at a reasonably simple example like that could be...
5
by: geskerrett | last post by:
We are working on a project to decipher a record structure of an old accounting system that originates from the late80's mid-90's. We have come across a number format that appears to be a "float"...
25
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30...
14
by: Paddy3118 | last post by:
This month there was/is a 1000+ long thread called: "merits of Lisp vs Python" In comp.lang.lisp. If you followed even parts of the thread, AND previously used only one of the languages AND...
4
by: mkppk | last post by:
MICR = The line of digits printed using magnetic ink at the bottom of a check. Does anyone know of a Python function that has been written to parse a line of MICR data? Or, some financial...
3
by: Alexander Eisenhuth | last post by:
Hello, Ctrl+C is not passed to the interpreter (i guess it) while I'm executing a script. Instead i get: forrtl: error (200): program aborting due to control-C event If I start python in...
0
by: Tim Spens | last post by:
The following is a simple complete example using the c python api to generate callbacks from c to python. But when I run the c code I get a segfault in PyInt_FromLong () (see below). Most of this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.