Skip to content

snad uz to projde cervi dirou#12

Open
Libbaka wants to merge 6 commits intoCodersLab-CZ:masterfrom
Libbaka:master
Open

snad uz to projde cervi dirou#12
Libbaka wants to merge 6 commits intoCodersLab-CZ:masterfrom
Libbaka:master

Conversation

@Libbaka
Copy link

@Libbaka Libbaka commented Feb 8, 2024

No description provided.

secret_number = random.randint(1, 100)

while True:
try:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ten try je prilis sirokej a lepsi to omezit jen na ten kus kodu kde cekas ze to vyhdi vyjimku

drawn_numbers = set(random.sample(range(1, 50), 6))
print("Vylosovaná čísla:", drawn_numbers)

matched_numbers = set(sorted_user_numbers).intersection(drawn_numbers)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delas intersection takze proc nezvit ten puvodni >> matched_numbers = user_numbers.intersection(drawn_numbers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants