question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data Analysis with Python Course - Numpy Operations - incorrect answer

See original GitHub issue

Describe your problem and how to reproduce it: None of the available answers are correct. Without the 5 second option (marked as solution) would have the right numbers.

What is the value of a after you run the following code?:

a = np.arange(5)
a + 20

Answers

[20, 21, 22, 24, 24]
[0, 1, 2, 3, 4, 5]
[25, 26, 27, 28, 29]

Add a Link to the page with the problem: https://www.freecodecamp.dev/learn/data-analysis-with-python/data-analysis-with-python-course/numpy-operations

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
niteshseramcommented, Jun 2, 2020

@scissorsneedfoodtoo Thanks. Surely, I am looking forward to contribute more.

1reaction
ShaunSHamiltoncommented, May 30, 2020

Confirmed. Thank you, for pointing this out. For whoever submits a PR for this, only the second answer option needs to be changed to:

[0, 1, 2, 3, 4]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Analysis with Pyhton Course includes a wrong answer I think ...
Topic is NumPy operations. Website accepts the answer in the image true and declines the first one. It's better if they fix it...
Read more >
Data Analysis with Python Course - Numpy, Pandas, Data ...
Learn the basics of Python, Numpy, Pandas, Data Visualization, and Exploratory Data Analysis in this course for beginners.
Read more >
Data Analysis With Python - NumPy and Pandas Tutorial
In this video on NumPy and Pandas Tutorial, you'll learn how to perform data analysis with Python libraries. You'll look at the different ......
Read more >
101 NumPy Exercises for Data Analysis (Python) - ML+
101 Numpy Exercises for Data Analysis. Photo by Ana Justin Luebke. If you want a quick refresher on numpy, the following tutorial is...
Read more >
NumPy Cheat Sheet: Data Analysis in Python - DataCamp
This Python cheat sheet is a quick reference for NumPy beginners looking to get started with data analysis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found