Return type : int
Logical xor operator.
Arguments :
- num1 : int
- num2 : int
Return type : int
Writes str to stdout. Returns how many characters was written.
Arguments :
- text : str
Return type : int
Writes object, converted to str, to stdout and puts \n at the end. Returns how many characters was printed.
Arguments :
- value : obejct
Return type : list(always length 2)
Inputs integer from user, before input outputs tip
. Returns list of two integers, first integer represents was converting to intger successful(1 if was successful, if not 0) and parsed integer, 0 if parsing wasnt successful.
Arguments :
- tip : str
Python sys library
Standard output, can be changed to any writable object(mostly file), so output will write to this stdout.
Return type : int
Return the ceiling of x, the smallest integer greater than or equal to x.
Arguments :
- val : object
Return type : int
Regular to_int works like floor, this funtion uses standard mathematical way to round number with decimal point to integer.
Arguments :
- val : object
Math module from python. Check Pyeval for more details.
Float pi number
Return type : int
Shortcut for (convert val int)
.
Arguments :
- val : object
Return type : float
Shortcut for (convert val float)
.
Arguments :
- val : object
Return type : str
Shortcut for (convert val str)
.
Arguments :
- val : object
Return type : list
Shortcut for (convert val list)
.
Arguments :
- val : object
Return type : object
Converts list top python tuple.
Arguments :
- val : list
Return type : object
Executes python method with name method
on obj
with args(unpacks list as args). Returns return of method, if returned None, returs 0.
Arguments :
- obj : object
- method : str
- args : list
Return type : object
Executes python function with name func_
with args(unpacks list as args). Returns return of function, if returned None, returs 0.
Arguments :
- func_ : str
- args : list
Return type : object
Imports and returns module with name module
Arguments :
- module : str
Return type : object
Returns attribute with name attr
of object obj
, will give python error if attribute was not found.
Arguments :
- obj : object
- attr : str
Return type : None
Sets attribute with name attr
of object obj
to value
.
Arguments :
- obj : object
- attr : str
- value : object
Return type : int
Returns 1 if obj
has attribute with name attr
, else returns 0.
Arguments :
- obj : object
- attr : str
Return type : object
Returns attribute with name attr
of object obj
, if there is attribute with name attr
on object obj
, will return -1, if attribute was not found.
Arguments :
- obj : object
- attr : str
Return type : int
Throws regular binarian exception with message message
.
Arguments :
- message : str
Return type : int
Throws regular binarian exception with message message
if condition is 1. Retunrs condition.
Arguments :
- condition : int
- message : str
Return type : int
Returns 1 if obj
is of type with name type
(names will be processed with python).
Arguments :
- obj : object
- type : str
Return type : object
Returns type of obj.
Arguments :
- obj : object
Return type : object
Creates object of type type_
and returns its instance. Gives arguments args to constructor.
Arguments :
- type_ : object
- args : list
Return type : object
Returns file object with name file
.
Arguments :
- file : str
- mode : str
Return type : int
Writes to file with mode "a" or "w". Returns number of characters written.
Arguments :
- file : object
- str_ : str
Return type : int
Returns all text in file with mode "r".
Arguments :
- file : object
Return type : int
Closes file.
Arguments :
- file : object
Return type : float
Returns pseudo-random float beetwen 0 and 1.
This function shouldnt be used for cryptography
Return type : int
Returns pseudo-random float beetwen min
and max
including only first endpoint.
This function shouldnt be used for cryptography
Arguments :
- min : int
- max : int
Return type : int
Exits with exit code code
Arguments :
- code : int
Function epresenting None from python. This works really bad with return
Return type : str
Joins list of elements to one string with sep
beetwen elements. All elements are converted to str.
Arguments :
- list_ : list
- sep : str
Return type : str
Replaces all old
characters with new
string in string str_
and returns it. Old mush be 0-1 characters string.
Arguments :
- str_ : str
- old : str
- new : str
Return type : int
Returns 1 if str can be converted to integer.
Arguments :
- string : str
Return type : int
Returns length of str/list.
Arguments :
- iter : object
Return type : list
Returns new list, where all elements are return values of function callback
with 1st argument as element of list.
Arguments :
- list_ : list
- callback : function
Return type : list
Returns new list, where all elements, will return true if you call callback
with 1st argument as element of list. Other elements are elemenated from new list.
Arguments :
- list_ : list
- callback : function
Return type : int
Returns 1 if element is in list.
Arguments :
- val : object
- _list : list
Return type : int
Sums all numbers in list, in list format. Returns sum of them in list format.
Arguments :
- num1 : list
- num2 : list