2nd Guided Project - Exploring Hacker News

Here’s my second guided project.
How does it look?
I deviated a little bit from the project directions, to show things a little differently.

Thanks

Guided Project - Exploring Hacker News.ipynb (19.5 KB)

Click here to view the jupyter notebook file in a new tab

1 Like

Hi @Selkrin,

Congratulations on finishing this project. I quite like how you have incorporated some of the learning from the first guided project here.

Here is a few pointers that might be helpful to you.

  • You are using print("") to create an empty line. You can also use \n at the end of a line to add a new line, for example print("First line \n \n Second line") and it will print

first line

second line

  • Another place where you can apply some shortcut is this
total_ask_comments = total_ask_comments + int(num_comments)

When you have to do an operation on the same variable and update it, you can use
i += 1 instead of i = i + 1

If the above two suggestions were used intentionally for better readability, please don’t mind my suggestions.

It would be better to have an slightly elaborated introduction, which also mentioning a bit about the data sets, where to download them etc.

Altogether your project looks good. I hope this helps. Happy learning.

1 Like

Thank you for your feedback. :slightly_smiling_face:

I need to incorporate using \n more, in the future.

I usually type += when adding 1 , but I forget about using it sometimes in longer code like that.

1 Like