Home‎ > ‎Programming/Linux‎ > ‎

Python

Python is a nice little language, it took me a while to get used to it's use of indentation to mark blocks no begin end or braces. Python is powerful and clean but not as expressive as Perl
a python function looks like this:

def f(arg):
    if arg == 'fred':
        return 1
     else:
         return 2
Comments