{"id":9282,"date":"2021-10-01T10:30:26","date_gmt":"2021-10-01T05:00:26","guid":{"rendered":"https:\/\/python-programs.com\/?p=9282"},"modified":"2021-11-22T18:33:28","modified_gmt":"2021-11-22T13:03:28","slug":"python-program-to-find-all-numbers-in-a-range-which-are-perfect-squares-and-sum-of-all-digits-in-the-number-is-less-than-10","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-all-numbers-in-a-range-which-are-perfect-squares-and-sum-of-all-digits-in-the-number-is-less-than-10\/","title":{"rendered":"Python Program to Find all Numbers in a Range which are Perfect Squares and Sum of all Digits in the Number is Less than 10"},"content":{"rendered":"

Lists in Python:<\/strong><\/p>\n

A list is exactly what it sounds like: a container for various Python objects such as integers, words, values, and so on. In other programming languages, it is equal to an array. It is denoted with square brackets (and this is one of the attributes that differentiates it from tuples, which are separated by parentheses). It is also mutable, which means it can be changed or altered, as opposed to tuples, which are immutable.<\/p>\n

Given lower limit and upper limit , the task is to print all numbers in the given range which are perfect squares and sum of all Digits in the Number is Less than 10.<\/p>\n

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

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

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

Enter some random lower limit =5\r\nEnter some random lower limit =525<\/pre>\n

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

Printing the perfect squares numbers list which are less than 10: [9, 16, 25, 36, 81, 100, 121, 144, 225, 324, 400, 441]<\/pre>\n

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

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

Enter some random lower limit =69\r\nEnter some random lower limit =2379<\/pre>\n

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

Printing the perfect squares numbers list which are less than 10: [81, 100, 121, 144, 225, 324, 400, 441, 900, 1024, 1521, 1600, 2025, 2304]<\/pre>\n

Program to Find all Numbers in a Range which are Perfect Squares and Sum of all Digits in the Number is Less than 10 in Python<\/h2>\n

There are several ways to find all all numbers in the given range which are perfect squares and sum of all Digits in the Number is Less than 10 and store them in the list some of them are:<\/p>\n