Znalostná bázaCentrum skúšok
SKSlovenčina
Vybrať jazyk13

CKTIS / Python

Znalostná báza — Python

Syntax, operátory a pojmy programovania. Nájdi vysvetlenie, prezri si príklad a pokračuj v učení.

Počet hesiel: 583

Python

anext()

Zavolá `__anext__` a vráti objekt, na ktorý možno čakať pomocou await.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

any()

Overí, či má aspoň jeden prvok pravdivú hodnotu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

ascii()

Vráti reprezentáciu ako repr a znaky mimo ASCII nahradí únikovými sekvenciami.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

bin()

Zapíše celé číslo dvojkovo ako reťazec s predponou 0b.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

bool()

Vráti pravdivostnú hodnotu objektu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

breakpoint()

Zavolá aktuálny sys.breakpointhook so zadanými argumentmi a vráti jeho výsledok.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

bytearray()

Vytvorí meniteľné pole bajtov.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

bytes()

Vytvorí nemennú postupnosť bajtov.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

callable()

Overí, či možno objekt volať, napríklad funkciu, triedu alebo inštanciu, ktorej typ definuje `__call__`.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

chr()

Vytvorí jednoznakový reťazec z celočíselného kódového bodu od 0 do 0x10ffff vrátane.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

classmethod()

Pri prístupe k metóde zviaže ako prvý argument triedu, a to aj cez inštanciu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

compile()

Skompiluje text, bajty alebo AST pre zvolený režim.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

complex()

Vytvorí komplexné číslo z dvoch reálnych zložiek alebo načíta jediný reťazec.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

delattr()

Odstráni pomenovaný atribút podľa pravidiel `__delattr__` a pri úspechu vráti None.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

dict()

Vytvorí slovník z mapovania, dvojíc kľúč–hodnota alebo pomenovaných argumentov.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

dir()

Vráti zoradený zoznam mien na interaktívne prezeranie.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

divmod()

Pre celé čísla vráti dvojicu podielu zaokrúhleného nadol a zvyšku.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

enumerate()

Vytvorí iterátor dvojíc počítadlo–prvok, predvolene číslovaných od nuly.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

eval()

Pri zdrojovom texte vyhodnotí jeden výraz v zadaných menných priestoroch.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

exec()

Vykoná dôveryhodné príkazy alebo skompilovaný objekt kódu a vráti None.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

filter()

Vyberie pôvodné prvky s pravdivým výsledkom predikátu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

float()

Vytvorí číslo s pohyblivou rádovou čiarkou z čísla alebo reťazca.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

format()

Vráti reťazec pomocou metódy `__format__` typu hodnoty.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

frozenset()

Vytvorí nemennú množinu, ktorá sama môže slúžiť ako kľúč slovníka.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested