I know that in C++, we can take the user input, but I want to know how can we do that in Python?
Kindly refer to the below code that will take user input in c++
#include<iostream>
using namespace std;
int main() {
int array[50];
cin>>n;
//ask a list
for(i = 0; i<n; i++){
cin>>array[i];
}
}