Skip to main content
Logo

Python programming a ...

    • Қазақша ‎(kk)‎
    • Русский ‎(ru)‎
    • English ‎(en)‎
  • Log in
SYSTEMS.ENU Collapse Expand
PLATONUS.ENU DIRECTUM.ENU MAIL.ENU MY.ENU MOODLE.ENU MOOC.ENU
SYSTEMS.ENU Collapse Expand
PLATONUS.ENU DIRECTUM.ENU MAIL.ENU MY.ENU MOODLE.ENU MOOC.ENU
  1. Courses
  2. Дистанционное обучение
  3. Факультеты
  4. Факультет информационных технологий
  5. Кафедра Информатика
  6. Python programming application (Карымсакова А.Е.)/2024-2025 academic year
  7. Topic 9. Foundations of Python Network Programming
  8. Task 9
  • More

Task 9

Completion requirements
Opened: Saturday, 2 November 2024, 12:00 AM

Exercise 9 (and Solution)

Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right. (Hint: remember to use the user input lessons from the very first exercise)

Extras:

  • Keep the game going until the user types “exit”
  • Keep track of how many guesses the user has taken, and when the game ends, print this out.


Data retention summary
Get the mobile app
Яндекс.Метрика