kotlin

Python (back-end) and Kotlin (front-end) for Android

Python (back-end) and Kotlin (front-end) for Android Question: Ok I was doing some data science in python over the weekend and I got to looking at python for mobile development. I was curious as to if it’s possible to use both Python (back-end) and use Kotlin (front-end) together? I know python is a non GUI …

Total answers: 1

Converting Python code to Kotlin

Converting Python code to Kotlin Question: I found code to generate n distinct colors. I took the code and made a class out of it import colorsys import itertools from fractions import Fraction class DistinctColorsGenerator: def __init__(self): self._bias = lambda x: (math.sqrt(x / 3) / Fraction(2, 3) + Fraction(1, 3)) / Fraction(6, 5) self._gen_rgb = …

Total answers: 1