Logo

Pealkiri

text that has been struckthroug

This text will be italic

This text will be bold

On your machine, change to C:\Program Files (x86)\Git\bin and then type git.exe log. Press q to end the log view.

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
def arvuta(ik):
    if len(ik) != 11:
        print 'IK on vale pikkusega !'
        return
    ksum = 0
    ikx = ''
    for i in range(9):
        ksum = ksum + ((i + 1) * int(ik[i]))
        ikx = ikx + ik[i]
    ksum = ksum + int(ik[9])
    ikx = ikx + ik[9]
    ksum = ksum % 11
    ksum = ksum % 10
    ikx = ikx + str(ksum)
    if ikx == ik:
        print 'IK %s on õige kontrollsummaga' % ik
    else:
        print 'IK %s on vale kontrollsummaga, õige oleks %s' % (ik, ikx)

if __name__ == '__main__':
    from sys import argv
    try:
        arvuta(argv[1])
    except IndexError:
        print 'Kasuta:\n\t%s <isikukood>' % argv[0]
SELECT * FROM table WHERE a LIKE '%a'

Microsoft Azure

Esimene leht