The Python Oracle

How can I map a continuous variable to discrete strings, using dictionaries or otherwise in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Realization

--

Chapters
00:00 Question
02:12 Accepted answer (Score 3)
02:33 Answer 2 (Score 2)
03:03 Thank you

--

Full question
https://stackoverflow.com/questions/5555...

Accepted answer links:
[bisect]: https://docs.python.org/3.5/library/bise...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #dictionary #range

#avk47