Changes between Version 118 and Version 119 of python


Ignore:
Timestamp:
Oct 27, 2016, 2:53:21 PM (4 years ago)
Author:
mtelenta
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • python

    v118 v119  
    836836
    837837    print("Globalna vsota je: ", vsota)
     838}}}
     839Če bi hoteli uporabit določeno funkcijo iz programa prog1, lahko je "importamo" v novem programu prog2 z ukazom import.
     840
     841{{{
     842#!python
     843
     844# Python scripta
     845# -*- coding: utf-8 -*-
     846
     847from prog1 import sum
     848
     849x = 4
     850y = 5
     851
     852sum(x, y)
    838853}}}
    839854