title: How to take n numbers as input in single line in Python
body: <p>Like in C++ how can I ask user input upto a range</p>
  <p><strong>Below is the code to take user input in c++</strong></p>
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  int main() {
      int array[50];
      cin&gt;&gt;n;
      //ask a list
      for(i = 0; i&lt;n; i++){
          cin&gt;&gt;array[i];
      }
  }
  </code></pre>
  <p>How can I ask user input like above in Python 3? (I don't want to take the inputs in different lines)</p>