Programming
All tutorials in Programming
Sort By:    Name   Rating   Views  Comments    Date 
Browse Pages :    <<  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  >> 
Organization in Python
Submitted 02 June 2008

This section describes Python features that you can use to organize and structure your code.

Views: 268 Comments: 0
Control Structures In Python
Submitted 02 June 2008

Parentheses are not needed around the condition. Use parentheses to group sub-expressions and control order of evaluation when the natural operator precedence is not what you want.

Views: 288 Comments: 0
Simple Statements In Python
Submitted 02 June 2008

The print statement automatically appends a newline to output. To print without a newline, add a comma after the last object, or use "sys.stdout".

Views: 427 Comments: 0
Data Types in Python
Submitted 02 June 2008

In Python, strings are immutable sequences of characters. They are immutable in that in order to modify a string, you must produce a new string.

Views: 342 Comments: 0

Python is a high-level general purpose programming language. Because code is automatically compiled to byte code 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.

Views: 339 Comments: 0
GUI Applications in Python
Submitted 02 June 2008

This section will help you to put a GUI (graphical user interface) in your Python program. We will use a particular GUI library: PyGTK. We've chosen this because it is reasonably light-weight and our goal is to embed light-weight GUI interfaces in an (possibly) existing application. For simpler GUI needs, consider EasyGUI, which is also described below.

Views: 918 Comments: 0
Parsing in Phyton
Submitted 02 June 2008

Python is an excellent language for text analysis.In some cases, simply splitting lines of text into words will be enough. In these cases use string.split(). In other cases, regular expressions may be able to do the parsing you need. If so, see the section on regular expressions in this document. However, in some cases, more complex analysis of input text is required. This section describes some...

Views: 309 Comments: 0
Extending and embedding Python
Submitted 02 June 2008

Extending Python means to implement an extension module or an extension type. An extension module creates a new Python module which is implemented in C/C++. From Python code, an extension module appears to be just like a module implemented in Python code. An extension type creates a new Python (built-in) type which is implemented in C/C++. From Python code, an extension type appears to be just...

Views: 238 Comments: 0
Unit Tests
Submitted 02 June 2008

Unit test and the Python unit test framework provide a convenient way to define and run tests that ensure that a Python application produces specified results. This section, while it will not attempt to explain everything about the unit test framework, will provide examples of several straight-forward ways to construct and run tests.

Views: 333 Comments: 0

Defining a regular expression is to provide a sequence of characters, the pattern, that will match sequences of characters in a target.Sets of characters -- Characters and sequences of characters in square brackets form a set; a set matches any character in the set or range. For example, "[abc]" matches "a" or "b" or "c". And, for example,...

Views: 263 Comments: 0
Learn Python in 10 Minutes
Submitted 02 June 2008

So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. This tutorial will attempt to teach you Python in 10 minutes. It's probably not so much a tutorial as it is a cross between a tutorial and a cheatsheet, so it will just show you some basic concepts to start you off. Obviously, if you want to really learn a language you need to program in...

Views: 633 Comments: 0

A programmer can be significantly more productive in Python than in Java. How much more productive? The most widely accepted estimate is 5-10 times. On the basis of my own personal experience with the two languages, I agree with this estimate.

Views: 286 Comments: 0
Modules in Python
Submitted 09 May 2008

If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer program, you are better off using a text editor to prepare the input for the interpreter and running it with that file as input instead. This is known as creating a script. As your program gets longer, you may want to split...

Views: 8552 Comments: 0

When you are writing ASP there are many environments where you can do your work. I use and recommend using Ultradev 4, other ones include Dreamweaver 2 and 3 and Visual Interdev (though these can be a little daunting for the beginner). There are many packages such as Interdev which will assist you in writing code. This may make ASP easier to write but I strongly suggest that you learn to write ASP...

Views: 4621 Comments: 0

If you become clear with the concept of integer and string in PHP then you’ll obviously come to know that why those functions are not working sometime to validate integers in PHP. Let’s look at this by an example

Views: 675 Comments: 0
Browse Pages :    <<  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  >>