User-submitted Python Projects

32
1463 reads

February 11, 2013

Python-Module Contents


The dir( ) Function :

The dir( ) built-in function returns a sorted list of strings containing the names defined by or contained in a module.

23
1582 reads

February 11, 2013

Python - Modules


Simply, a module is a file consisting of Python code. A module can define functions, classes, and variables. A module can also include runnable code.

37
1253 reads

February 11, 2013

Arithmetic Data types


The following example illustrates the arithmetic data types.

22
1286 reads

February 11, 2013

Bitwise Arithmetic


The following example illustrates the various bitwise operators.

40
1296 reads

February 11, 2013

Basic Arithmetic Operations


The following example shows the basic arithmetic operations in python.

37
1044 reads
hemc's picture

Submitted by

hemc
codechef_solutions
Solution to feb 2013 codechef problems
Run It Now!
268
2889 reads

February 10, 2013

List : Built In Functions


Built into the python interpreter are a number of functions which are a piece of code that carry out specific operations and returns the result of those operations.

38
1331 reads

February 10, 2013

List Comprehension


List comprehension is basically short hand for creating list. It is used to derive a new list from an existing list.

205
2619 reads

February 10, 2013

List operations


The two standard sequence operations '+' and ' * ' can be performed with list

369
4873 reads

February 10, 2013

List Slices


The slice operator is a way to get items from lists, as well as change them.The process--
a list is given named list1 so to slice it we use slice operator.