#66 Let's Code Python Crash Course | studywithnova

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 13

  • @andersonmoraes80s
    @andersonmoraes80s 7 วันที่ผ่านมา +3

    Hello Nova! My humble opinion about your concern at 24:04 of the video. I think the code is working fine, as it should. It depends on the rules of the game: is '891c' a code and Your ticket must be the same code? If yes, then you should try using something different to create the Winning ticket and check You ticket, maybe not the IN opperator. But if those 4 digits: 8,1,9,'c' only need to be among those Winning ticket digits: 8,9,1,'c', so it works. Logic of the IN opperator: winning_ticket= [ 8, 9, 1, 'c' ], so 8 in winning_ticket = True, 1 in winning_ticket = True, 9 in winning_ticket= True and 'c' in winning_ticket = True, regardless of the order. My English is not good, I hope you understood. I'm enjoying your videos.

    • @andersonmoraes80s
      @andersonmoraes80s 7 วันที่ผ่านมา

      A simple and possible solution would be to create winning_ticket: using a loop, the choice() method chooses 4 digits from the list and concatenates them (as string) in a variable (instead of appending to a list), eg.: winning_ticket = '891c'. After that, the choice() method does the same to creates your_ticket = '819c'. To check: winning_ticket == your_ticket = False

    • @studywithnova
      @studywithnova  6 วันที่ผ่านมา +1

      Thanks as always Anderson! I see.... let me try first, then I can share video.

  • @bilalafghan164
    @bilalafghan164 5 วันที่ผ่านมา

    Salam alaykum sister can I ask a question

    • @bilalafghan164
      @bilalafghan164 5 วันที่ผ่านมา

      My name is Bilal I am from Turkey I need your help if you give me your golden time ,i appreciate

    • @studywithnova
      @studywithnova  5 วันที่ผ่านมา +1

      Walaikumsalam, sure bilal!

    • @bilalafghan164
      @bilalafghan164 5 วันที่ผ่านมา

      @studywithnova thank you , for return ., now i am learning java , i hope inshallah after java i will start C# , can you give me information about web development because i don't how i will be a good development i don't know the road map

    • @studywithnova
      @studywithnova  4 วันที่ผ่านมา

      Hi Bilal, please check roadmap.sh/ maybe focus on frontend/backend/full stack for web development.

    • @bilalafghan164
      @bilalafghan164 4 วันที่ผ่านมา

      @@studywithnova thanks mam, bay the way where are you from?