codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
"""Example Python Program""" import random # Create and add to a list python = [] python.append("Easy to read") python.append("Fast to code") python.append("Quick to learn") python.append("Modular and object oriented") python.append("Open source and cross platform") # Shuffle list random.shuffle(python) # Loop through list count = 1 print "Python is ... " for each in python: print count,each count += 1 print "Discover more at http://www.python.org"
Private
[
?
]
Run code