input: Write a function to return the slice of a string based on the given start and end indices. The function should take a string and two integer indices as input and return the substring that lies within the given indices. If the end index is greater than the length of the string, the function should return the substring from the start index to the end of the string.
  assert slicing("This is a slicing test", 8, 15)=="slicing"
  assert slicing("Hello, World!", 7, 12)=="World"
  assert slicing("Python", 0, 10)=="Python"
  assert slicing("Short", 2, 3)=="r"
  assert slicing("Empty", 0, 0)==""
output: def slicing(s, start, end):
      return s[start:end]