Changes between Version 56 and Version 57 of python


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

Dictionary

Legend:

Unmodified
Added
Removed
Modified
  • python

    v56 v57  
    105105d = b[1:] # pa do zadnjega
    106106print c, b[-1]
     107
     108tel = {'jack': 4098, 'sape': 4139, 4098 : 'janez'} # slovar (asociativni seznam)
     109ime = {4098 : 'jack'}
     110
     111print tel['jack']
     112print tel[4098]
     113
    107114
    108115# Matrike