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.
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 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
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.
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
Thanks as always Anderson! I see.... let me try first, then I can share video.
Salam alaykum sister can I ask a question
My name is Bilal I am from Turkey I need your help if you give me your golden time ,i appreciate
Walaikumsalam, sure bilal!
@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
Hi Bilal, please check roadmap.sh/ maybe focus on frontend/backend/full stack for web development.
@@studywithnova thanks mam, bay the way where are you from?