Reverse a given string using python.
Hello World
def reverse_string(my_str): 
  rev_str = "" 
  
  for i in my_str: 
    rev_str = i + rev_str
  
  return rev_str

my_str = 'Hello World'

reverse_string(my_str)