{"id":16695,"date":"2021-08-12T09:25:19","date_gmt":"2021-08-12T03:55:19","guid":{"rendered":"https:\/\/python-programs.com\/?p=16695"},"modified":"2021-11-22T18:38:32","modified_gmt":"2021-11-22T13:08:32","slug":"python-program-to-check-buzz-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-buzz-number-or-not\/","title":{"rendered":"Python Program to Check Buzz Number or Not"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Calculate the Area of a Trapezoid<\/a>
\nBuzz Number:<\/strong><\/p>\n

If a number ends in 7 or is divisible by 7, it is referred to as a Buzz Number.<\/p>\n

some of the examples of Buzz numbers are 14, 42, 97,107, 147, etc<\/p>\n

The number 42 is a Buzz number because it is divisible by ‘7’.
\nBecause it ends with a 7, the number 107 is a Buzz number.<\/p>\n

Given a number, the task is to check whether the given number is Buzz Number or not.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given number = 97<\/pre>\n

Output:<\/strong><\/p>\n

The given number { 97 } is a Buzz Number<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given number = 120<\/pre>\n

Output:<\/strong><\/p>\n

The given number { 120 } is not a Buzz Number<\/pre>\n

Program to Check Buzz Number or Not<\/h2>\n

Below are the ways to check whether the given number is Buzz Number or not.<\/p>\n