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 ?
Previous Topic control keywords (break, continue, pass) Next Topic Functions (def, return, scope, positional arguments, default arguments, keyword arguments)