input: Write a python function to check if a given Profile object has a specific hobby.
  assert has_hobby(profile, "Travelling") == True
  assert has_hobby(profile, "Reading") == False
  assert has_hobby(profile, "Swimming") == True
output: def has_hobby(profile, hobby):
      return hobby in profile.hobbies