Të përgjithshme

Function call

Në shqip: Thirrja e funksionit

ShpjegimiSQ

Thirrja e funksionit është momenti kur e përdor një funksion: shkruan emrin e tij me kllapa — p.sh. pershendet("Arta") — dhe kodi brenda tij ekzekutohet. Pa kllapat, funksioni s'ekzekutohet.

EnglishEN

A function call is the moment you use a function: you write its name with brackets — like greet("Arta") — and the code inside runs. Without the brackets, the function doesn't run.

Si ta mendosh

Receta (funksioni) është në libër, por gjella bëhet vetëm kur dikush thotë „gatuaje tani!“ — kjo është thirrja.

Lexoje në anglisht

The recipe (the function) is in the book, but the dish only gets made when someone says “cook it now!” — that's the call.

Shembull kodipython

def pershendet(emri):
    print("Përshëndetje,", emri)

pershendet("Arta")  # thirrja — tani ekzekutohet

Terma të lidhur