(self)
| 333 | |
| 334 | print("Example 20") |
| 335 | def next_guess(self): |
| 336 | if self.secret is not None: |
| 337 | return self.secret |
| 338 | |
| 339 | while True: |
| 340 | guess = random.randint(self.lower, self.upper) |
| 341 | if guess not in self.guesses: |
| 342 | return guess |
| 343 | |
| 344 | async def send_number(self): # Changed |
| 345 | guess = self.next_guess() |