Algorizm documentation
This is the documentation for Algorizm 0.1. If you are new, begin with First steps and then read the tutorial in order; each page builds on the one before. The reference pages describe every keyword, built-in function, method and module, and are meant for looking things up.
Every code example in the documentation was run, and the box marked Output under it shows what it really printed.
First steps
- Installing and your first programInstall Algorizm, run your first program, and try the interactive mode.
Tutorial
- Values and variablesNumbers, text, true and false, variables, operators, f-strings, and reading input.
- Conditions and loopsMaking decisions with agar, repeating with toki and har, and leaving a loop early.
- Lists, dictionaries and other collectionsLists, dictionaries, sets, tuples and bytes: creating them, changing them, slicing and sorting.
- FunctionsDefining functions, default and named arguments, nameless functions, scope, closures and generators.
- ClassesDefining classes, creating objects, inheritance, computed fields and static methods.
- ErrorsReading error messages, catching errors with urin and ushla, and raising your own with tashla.
- ModulesUsing the standard library with import, and splitting your own program into several files.
Reference
- Keywords and operatorsEvery keyword of Algorizm with its meaning and Python equivalent, all operators and their order.
- Built-in functionsAll built-in functions of Algorizm, grouped by purpose, with their Python equivalents and examples.
- MethodsThe methods of text, lists, dictionaries, sets, tuples and bytes.
- Standard libraryThe nine modules that come with Algorizm: matematika, tasodif, vaqt, sana, fayl, papka, tizim, json and qolip.
- The command lineRunning programs with the algorizm command, passing arguments, and using the interactive mode.
- For Python programmersWhat is the same as in Python, what is different, and what Algorizm 0.1 does not have yet.
Help inside Algorizm
Algorizm can describe its own functions. In the interactive mode, yordam() lists everything that is built in, and yordam(uzunlik), yordam(fayl) or yordam("matn".ajrat) describe one function, module or method. The descriptions are in Uzbek.
Searching
The search box at the top of every page looks through the whole documentation. Try the name of a function, such as saralangan, or a topic, such as files.