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