# Demo ⚠️ **This is a demo problem aimed at developers wishing to create kata.** Your data is a long sequence of numbers separated by commas, represented as a string. We need to get some information from this string. Specifically, you need to answer 3 questions: 1. What is the maxiumum value? 2. What is the position (index) of the maximum value? 3. What is the mode (most common value) of the data? If there's more than one mode, give the largest value. ## Example Here is some example input: 2, -5, 4, 4, 9, 1, 1, -2, 10, 1, 4, 9 And the answers to the 3 questions: - The maximum value is **10** - The position of the maximum value is **8** - The modes are 1 and 4; the greatest of these is **4** ## A quick reminder how this works This document is formatted in [Markdown](https://daringfireball.net/projects/markdown/). You can retrieve your data, which is always a string, by choosing a **``** (also a string). This ensures that you have different data from other people, so be creative. ``` url = 'https://kata.scienxlab.org/challenge/demo' params = { 'key': # Replace with your own string. } r = requests.get(url, params) r.text ``` To answer question 1, change the `params`: ``` params = { 'key': , # Use the same key you used to get your input. 'question': 1, 'answer': 1234 # Your answer; can be a float, int, list or array; # the challenge description will tell you which. } ``` To get a hint for a question, provide the question number but no answer: ``` params = { 'question': 1, } ``` [Complete instructions at kata.scienxlab.org](https://kata.scienxlab.org/challenge) [An example notebook to get you started](https://gist.github.com/kwinkunks/50f11dac6ab7ff8c3e6c7b34536501a2) ---- © 2024 [Scienxlab](https://scienxlab.org/) — Code: openly licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) — Text: openly licensed under [CC BY](https://creativecommons.org/licenses/by/4.0/).