Skip to content

pokus o workshop#13

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

pokus o workshop#13
Satircz wants to merge 6 commits intoCodersLab-CZ:masterfrom
Satircz:master

Conversation

@Satircz
Copy link

@Satircz Satircz commented Apr 27, 2024

No description provided.

print(f"Your guessed number is {guess_number}.")
if guess_number < random_number:
print("Too small!, try again!")
elif guess_number > 100:

Choose a reason for hiding this comment

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

doporucil bych delat tento check prvni a nedavat ho do elif ale do sveho vlastniho if

Copy link

@juicyscoop juicyscoop left a comment

Choose a reason for hiding this comment

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

Skvela prace! Jen par pripominek - z obecneho pohledu je vhodne nejdriv kontrolovat validitu vstupu a az pote jakkoli se vstupem operovat - pokud totiz vstup neni validni tak si muzeme usetrit jakkoli operace ktere predpokladaji ze validni je :)

print("You need enter a valid number.")
continue
number = int(user_guess)
if number < 1 or number > 49:

Choose a reason for hiding this comment

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

Opet - kontrolu validity je potreba predradit kontrole herni.

matches += 1
return matches

def main():

Choose a reason for hiding this comment

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

pekne rozdeleni funkcionalit!

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