conditions-based problems

  1. Write a Python program to create a number guessing game where the user has to guess a predefined number ?
  2. Write a Python program to determine whether a given number is even or odd ?
  3. Write a Python program to determine whether a given number is divisible by both 5 and 7 ?
  4. Write a Python program to implement a simple rock-paper-scissors game against the computer ?
  5. Write a Python program to find whether a given number is a palindrome ?
  6. Write a Python program to create a number guessing game with three attempts ?
  7. Write a Python program to determine whether a given year is a leap year and display the corresponding result ?
  8. Write a Python program to develop a menu-driven mathematical game that allows the user to perform different operations based on their choice ?
  9. Write a Python program to create a lucky number game where the user wins if the entered number is divisible by both 4 and 6 ?
  10. Write a Python program to create a number comparison game where the player wins if the first number is greater than the second number ?
  11. Write a Python program to create a bonus point game where a player gets bonus points if the score is between 80 and 100 ?
  12. Write a Python program to determine whether a given number is a buzz number.
    A buzz number is divisible by 7 or ends with 7 ?
Previous Topic control keywords (break, continue, pass) Next Topic Functions (def, return, scope, positional arguments, default arguments, keyword arguments)