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