How can you simulate 1000 normally distributed data points with mean=x and variance=y in R, summarize the statistics, and create a density plot? Additionally, replicate this task in Python on the Codility editor.

Free for the first 3 answer contributors

Interview question asked to Machine Learning Engineers interviewing at Redfin, Wayfair, Credit Karma and others: How can you simulate 1000 normally distributed data points with mean=x and variance=y in R, summarize the statistics, and create a density plot? Additionally, replicate this task in Python on the Codility editor..