Негізгі мазмұнға
Logo

Python programming a ...

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

Task 2

Completion requirements
Opened: бейсенбі, 31 қазан 2024, 12:00 AM

Exercise 2 (and Solution)

Ask the user for a number. Depending on whether the number is even or odd, print out an appropriate message to the user. Hint: how does an even / odd number react differently when divided by 2?

Extras:

  1. If the number is a multiple of 4, print out a different message.
  2. Ask the user for two numbers: one number to check (call it num) and one number to divide by (check). If check divides evenly into num, tell that to the user. If not, print a different appropriate message.


Data retention summary
Мобильдік қосымшаға өту
Яндекс.Метрика