ChatCrawlersearch across public Telegram Open the app
P

Python

сообщение · 2025-11-21 11:45 UTC
I
Hi everyone, I can't solve the loop problems in Python. - Write a program—a "surprise pie" simulator—that, when launched, displays one of five different "surprises", chosen randomly. - Write a program that "flips" a virtual coin 100 times and reports how many times heads came up, and how many times tails. - Modify the "Guess the Number" program so that the player has a limited number of attempts. If the player does not guess the correct number (and loses), the program should output the harshest possible message. - And here is a more complex task. Write a pseudocode algorithm for a game in which a computer guesses a number between 1 and 100, and the person thinks of a number. Before starting to write the code, think about what the optimal guessing strategy should be. If your pseudocode algorithm is successful, try implementing the game in Python.

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog