Skip to content

Latest commit

 

History

History
88 lines (65 loc) · 1.72 KB

README.md

File metadata and controls

88 lines (65 loc) · 1.72 KB

arrmovs

arrmovs_logo

Python Module For Converting INT to Array

There is 18 modules, that can help you convert your INT num into Array (and on the contrary)

Enjoy


LINKS


Installation

So first of all install package on your PC/Enviroment

pip install arrmovs

If something went wrong, try to install it with:

pip3 install arrmovs

Main Modules

When you install package, let's create our array with your number

import arrmovs as arr

num = 1234
myArray = arr.IntToArr(num)

Convert your INT number into Array and sort it

myArray = arr.IntToArrSorted(num)

Reversed Version

myArray = arr.IntToArrSortedReverse(num)

Let's convert your Array in INT (If in your Array, first ellement is 0, it will be deleted)

import arrmovs as arr

myArr = [1, 2, 3, 4, 5]
num = arr.ArrToInt(myArr)

Random Generation Module

Let's generate random INT num and convert it into Array.
We need numbers from which will be starting creating and ending (fr/to).
If fr == 0, it will cause Errors and if to > fr, it wil cause Errors too.

import arrmovs as arr

myRandomArray = arr.IntToArrRandom(1, 5)