Computer Science
Write a Python program to generate and print a list of first and last 5 elements where the values are square of numbers between 1 and 30 (both included).
Write a Python program to generate and print a list of first and last 5 elements where the values are square of numbers between 1 and 30 (both included).