input: Write a function to rewrite the given JavaScript code in Python. The function should take a list of integers, iterate through each element, and print the element multiplied by 2.
  assert rewrite_code([1, 2, 3, 4, 5])==None
  assert rewrite_code([2, 4, 6, 8, 10])==None
  assert rewrite_code([])==None
  assert rewrite_code([-1, -2, 3, 4])==None
  assert rewrite_code([10, 20, 30])==None
output: def rewrite_code(lst):
      for num in lst:
          print(num * 2)