Changes between Version 55 and Version 56 of python


Ignore:
Timestamp:
Oct 22, 2013, 11:06:22 AM (11 years ago)
Author:
Leon Kos
Comment:

Operator obsega je bil pozabljen

Legend:

Unmodified
Added
Removed
Modified
  • python

    v55 v56  
    9898b.append(4) # dodamo element na koncu
    9999b[5]=5
     100
     101p = [] # prazen seznam
     102b = [1,2,3,4,5]
     103b[-1]=4
     104c = b[1:-1] # Operator obsega : (range) do predzadnjega!
     105d = b[1:] # pa do zadnjega
     106print c, b[-1]
    100107
    101108# Matrike