Rosalind Problems: Python Village

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 31

  • @user-ui1iw7yg1i
    @user-ui1iw7yg1i Před rokem

    I love your veido, it's amazing, especially rosalind, learning python to solve interesting and practical question is meaningful.

  • @user-ui1iw7yg1i
    @user-ui1iw7yg1i Před rokem +1

    Actually, I think in the section of working with files, we add start = 1 in enumerare function, this is much better to understand.

  • @climb8118
    @climb8118 Před rokem +1

    Whoever made this yt video needs some fire head for real thanks for the help i couldn’t do this on my own no matter how long I tried

    • @rebelScience
      @rebelScience  Před rokem

      Glad I could help

    • @climb8118
      @climb8118 Před rokem

      @@rebelScience imusing google collab for my assignments and anytime i try and use a file it wont load the code

    • @climb8118
      @climb8118 Před rokem

      any suggestions?

  • @amitrupani9898
    @amitrupani9898 Před 4 lety +3

    Hi rebelCoder
    I believe there is an easier way to solve #3 Loops and conditions
    start =100
    end = 200
    result = [x for x in range(start+1,end,2)]
    print(sum(result))
    Where "range(start+1,end,2)" skips even numbers while going from start+1 to end.
    What do you think?

    • @rebelScience
      @rebelScience  Před 4 lety +3

      You are right. While it is not necessarily 'easier' way, but it is one of the ways for sure. If you take a look at "Solutions" section as I mentioned at the end of the video, you will see so many different ways. So there is no point of listing all the ways we can solve this, as there are way to many. In our videos we will try having a balance between "Easy-To-Read/Understand" and "Very Pythonic". I want to make sure people, who are just picking up Python, can still understand the code, as it is written in logical steps and uses operators like % in our case. We will come across some crazy Python code later on, where we will optimize 5-7 lines into 1-2. You gonna love it! But we will try keeping the balance, so our code is not just for experienced Python programmers.

    • @amitrupani9898
      @amitrupani9898 Před 4 lety +1

      ok, just found my code doesn't work with start number that's odd! :'(

    • @rebelScience
      @rebelScience  Před 4 lety +2

      A good practice right there. That +1 for start is tricky and is causing the problem. Try using debugger in VSCode and step through and you will see the problem. We will cover debugger separately. It is a necessary tool for our more complex algorithms ahead.

  • @FilipMakaroni_xD
    @FilipMakaroni_xD Před měsícem

    Nice video man but please, I thought the other way for summing odd numbers was range(start, end, count)🥺

  • @johnnyloaizaperez6146
    @johnnyloaizaperez6146 Před 2 lety

    What program are you using?

  • @prezadent1
    @prezadent1 Před 4 lety +1

    Didn't this channel have other videos? What happened to them?

  • @mariaalejandralopezsalas2447

    I did the same on Pycharm but i didddnt get the answer :(

    • @Miss_understood
      @Miss_understood Před 2 lety

      me too. please reply if you find out what the problem is

    • @rebelScience
      @rebelScience  Před rokem

      It is hard to say way this is happening, without looking at some screenshots, as we all have different operating systems, python version, editors. I strongly recommend to NOT use PyCharm if you are a total beginner. PyCharm is an amazing code editor, but it is too complex for beginners. Too many people had issues running even a simple code on PyCharm. Try using the simple, clean code editor I use in my videos: VSCode or VSCodium. This way you can focus on learning programming, ad not fighting your code editor.

  • @xamaniftikhar7867
    @xamaniftikhar7867 Před 4 lety

    Hey can you solve ..mortal rabbit fibonaci series as well?

  • @tallon3925
    @tallon3925 Před 4 lety +1

    Which IDE is this?

    • @rebelScience
      @rebelScience  Před 4 lety +1

      This one: czcams.com/video/81Eb_YXmV4g/video.html

    • @tallon3925
      @tallon3925 Před 4 lety

      @@rebelScience thanks so much!

  • @xamaniftikhar7867
    @xamaniftikhar7867 Před 4 lety +1

    can you do a rabbit fibonacci problem?

    • @rebelScience
      @rebelScience  Před 4 lety +1

      I already did. Check out other Rosalind videos.

    • @xamaniftikhar7867
      @xamaniftikhar7867 Před 4 lety +1

      @@rebelScience yes i checked it..it helpd me alot Thanku so much for the efforts..It means alot💘

    • @rebelScience
      @rebelScience  Před 4 lety +1

      @@xamaniftikhar7867 you are welcome. More cool things coming soon.

  • @LearningWithFun333
    @LearningWithFun333 Před 3 lety

    Hi rebelCoder, the reading and writing files problem is not working.

    • @rebelScience
      @rebelScience  Před 3 lety

      Hey! You are the first to report this. Read/Write code is very simple Python , so I have a feeling you need to double check your code. Try looking up other videos about reading and writing files. Or join our chat and provide screenshots and error codes you are seeing.

    • @LearningWithFun333
      @LearningWithFun333 Před 3 lety

      @@rebelScience I even followed your code given in your gitlab account, yet I keep getting an error.

    • @rebelScience
      @rebelScience  Před 3 lety

      Well, how can we help you if you are telling us what error you are getting ?

    • @LearningWithFun333
      @LearningWithFun333 Před 3 lety

      @@rebelScience i'll take a screenshot and send it to you via chat

    • @Miss_understood
      @Miss_understood Před 2 lety

      mine isn't working either