Creates a set named squares that contains the squares of numbers from 1 to 10. Here's how the code works:
squares = {x**2 for x in range(1, 11)} print(squares)
{64, 1, 4, 36, 100, 9, 16, 49, 81, 25}
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions