a function that generates the sequence of squares of odd numbers upto a given number and returns it as a list in python code example
Example: how to get odd numbers in python
# Here, rnge means range
rnge = int(input("Enter the range: "))
for i in range(1, rnge, 2):
print(i)