## Solution of Exercise 211: setof perfect square in python

Exercise 211 Write a Python program that returns the set of perfect square integers less than or equal to 100. Solution # function that tests if a number is a perfect squaredef perfectSquare(n): test=False for i in range(0 , n+1): # test if n is perfect square and change test to True if i**2 ==…