Baza znanjaIzpitno središče
SLSlovenščina
Izberi jezik13

CKTIS / Python

Baza znanja — Python

Sintaksa, operatorji in programski pojmi. Poišči razlago, oglej si primer in nadaljuj učenje.

Število gesel: 583

Python

Operator !=

Seznama sta neenaka, če sta različno dolga ali če pri vsaj enem ustreznem paru elementa nista isti objekt in tudi nista enaka po ==.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator <<

Premakne bite celega števila v levo in na desni doda ničle.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator <<=

Posodobi celo število s premikom njegovih bitov v levo.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator <=

Preveri vključujočo zgornjo mejo.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator <

Preveri, ali je levo število strogo manjše od desnega.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator and

Najprej preveri resničnost levega operanda.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator not

Obrne logično vrednost in vedno vrne True ali False.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator or

Vrne levi operand, če je resničen, ne da bi ovrednotil desnega.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator @=

Matrični produkt priredi prvotnemu cilju.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator @

Matrično množenje prepusti tipoma operandov.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator in

Preveri pripadnost desnemu objektu.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator *

Pomnoži števili ali ponovi zaporedje celo število krat.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator *=

Pri številih shrani zmnožek, pri seznamu pa ponovi elemente v istem seznamu.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator is not

Vrne True za različna objekta, tudi če sta njuni vrednosti enaki.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator not in

Vrne True, če iskanega elementa ni v desnem objektu.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator %

Vrne ostanek pri količniku, zaokroženem navzdol.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator %=

Prejšnje število nadomesti z ostankom pri deljenju z desnim operandom.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator >>

Premakne bite v desno in zavrže najnižje bite.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator >>=

Shrani celo število po zavrženju določenega števila najnižjih bitov.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator -

Od levega števila odšteje desno.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator -=

Od dosedanje vrednosti cilja odšteje desno vrednost in shrani razliko.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Enomestni minus

Obrne predznak enega operanda prek njegovega protokola za številsko negacijo.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Razpakiranje slovarjev

Izraz {**a, **b} ustvari nov slovar iz elementov dveh preslikav. Pri ponovljenih ključih velja poznejša vrednost; izvorna slovarja ostaneta nespremenjena.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

docstring — dokumentacijski niz

Docstring je običajen nizovni literal (ne f-niz ali t-niz), uporabljen kot prvi stavek modula, razreda ali funkcije. Dokumentira namen objekta in je dostopen prek __doc__; ni komentar, ki se začne z #.

Osnovna · Python 3.14; repository image, production runtime not attested