human
Can you show me a Python program to check if stdin is provided.
assistant
Here is a Python program to check if stdin is provided

import sys

def _check_stdin():
  """Check if stdin is provided."""
  if sys.stdin:
    return True
  else:
    return False

# Enter the string
string = "lilly"

# Calling the function
print((_check_stdin()))

#Example Output
# True

#Remember to inspect code for bugs.