Minimum of Two youtube comment

Back to General discussions forum

ThereAreNoUsernamesLeftForMe     2024-06-04 15:12:17

Hi there. I asked a quesion about the minimun of two problem on yt a few days ago on the https://www.youtube.com/watch?v=c6WWZe12ves&t=421s video. I replited to your last comment with my username and other detail twice, but each time I checked the video comments my reply was nowhere to be seen. I think yt is removing the comment because I mention my username? I am not to sure. It is weird.

In regards to the question, I did manage to take the test data an import as a txt file to Juypiter and passed it all through my code, this method has worked well.

I still want to know if I am doing something stupid in the code cell to not get any outputs. Either I get nothing, or I get an error when I try and tinker with the input.

Rodion (admin)     2024-06-04 18:29:53
User avatar

Hi Friend!

The issue is that you seemingly don't catch that you are not writing complete programs at all. This Jupyter Notebook is a bit harmful for beginners.

Your program should do the following:

  • input the data (e.g. using input() function)
  • split them and convert if necessary (e.g. to integers)
  • do necessary processing (usually, apply the function which you write in jupyter notebook)
  • print out results

If this sounds still puzzling, try:

  • review the video more carefully perhaps, note this input and print functions
  • check explanation and example at this article
  • browse someone other's solved problems, their sources in Python

I'm sure you'll easily get the idea. However, ideally install Python at your machine and try getting acquainted with these input/print things. Alternatively try some interactive online python interpreter, e.g. here

ThereAreNoUsernamesLeftForMe     2024-06-04 22:57:07

Ohhhh. Thank you for this. It took me a while but I think I finally get it.

ThereAreNoUsernamesLeftForMe     2024-06-04 22:58:42

I also want to say that I love the webiste. It is so cool how you have made such a good and fun resource for people to learn how to code :).

I wonder how long it will take me to get all the questions done hahhahaaha.

Please login and solve 5 problems to be able to post at forum