for num in range(10,31):\n    if num > 1:\n        for i in range(2, num):\n            if (num % i) == 0:\n                break\n        else:\n            print (num)
Generate a Python script to print out the prime numbers between 10 and 30.?