Index

images  A

images  B

images  C

images  D

Data structures

    ColorList variable

    dictionary

        blank dictionary

        .clear() method

        .copy() method

        dict(list) function

        .get(key[,default]) method

        .has_key(key) method

        information

        .items() method

        .iteritems() function

        .keys() method

        len(dictionary) function

        .pop(key[,default])

        .setdefault(key[,default])

        update(other) method

        .values() method

    digging

    list functions

        array

        del(L[x])

        for loop

        L1 + L2

        len(L) functions

        L[x1:x2]

        L[x] function

        max(L)

        min(L) function

        MyList

        variable t

        x in L function

        x not in L function

    list methods

        .append(x)

        .count(x)

        .extend(L)

        .index(x)

        .insert(i,x)

        .pop([i])

        .remove(x)

        .reverse() method

        .sort() method

    set functions

    set methods

        .add(item)

        .clear() method

        .copy() method

        .difference(set)

        .difference_update(set)

        .discard(item)

        frozensets

        .intersection(set)

        .intersection_update(set)

        .issubset(set)

        .issuperset(set)

        .pop() method

        .remove(item)

        .symmetric_difference(set)

        symmetric_difference_update(set)

        .union(set)

        .update(set)

    tuples

images  E

images  F, G, H

Functions

    optional parameters

    python program

    structure of

    TestFunction

    variables

        output

        return a value

        using global keyword

images  I, J

Interactive Shell

    code

    commands

    comments

    decoding the code

    Linux

    multiline statements

    windows

images  K

Keywords

    and keyword

    as keyword

    assert

    break loop

    continue keyword

    def function

    del keyword

    elif statement

    else statement

    escape sequence

    except keyword

    execution

    False

    finally keyword

    for loop

    from keyword

    global variable

    if statement

    import

    in keyword

    is keyword

    lambda function

    Misc.class

    none keyword

    nonlocal

    not keyword

    or keyword

    pass

    print keyword

    Python 3.x

    raise

    return

    true keyword

    try keyword

    while keyword

    with keyword

    yield

images  L, M

images  N

images  O

images  P, Q, R

images  S, T, U

Strings

    assignments

    functions

        len()

        max()

        min()

        s1 in s2

        s1 not in s2

        s1 + s2

        single character

        s[x1:x2]

        s[x1:x2:x3]

    methods

        startswith()and endswith()

        str.capitalize()

        str.center(width[,fillchar])

        str.count(sub[,start[,end]])

        str.decode([encoding[,errors]])

        str.encode([encoding[,errors]])

        str.endswith(suffix[,start[,end]])

        str.expandtabs([tabsize])

        str.find(substring[,start[,end]])

        str.format(*args,**kwargs)

        str.format_map(mapping)

        str.index(substring[,start[,end]])

        str.isalnum()

        str.isalpha()

        str.isdecimal()

        str.isdigit()

        str.isidentifier()

        str.islower()

        str.isprintable()

        str.isspace()

        str.istitle()

        str.isupper()

        str.join(iterable)

        str.ljust(width[,fillchar])

        str.lower()

        str.lstrip([chars])

        str.partition(sep)

        str.replace(old,new[,count])

        str.rfind(sub[,start[,end]])

        str.rindex(sub[,start[,end]])

        str.rjust(width[,fillchar])

        str.rpartition(sep)

        str.rsplit([sep[,maxsplit]])

        str.rstrip([chars])

        str.splitlines ()

        str.strip()

        str.swapcase()

        str.title()

        str.translate()

        str.translate(table[,deletechars])

        str.upper()

        str.zfill(width)

        translate method

    print statement

    Python 2.x formatting

    Python 3.x formatting

images  V, W, X, Y, Z

Variables

    assignment

    Camel Casing

    case-sensitive

    data type conversion

        ascii value

        character

        complex number

        floating point

        frozenset

        hexadecimal string

        integer base

        long integer base

        octal string

        sequence l

        unicode character

    dictionary

    lists

    numeric data type

    string data type

    tuples

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset