input: Write a function to calculate and print the cube of a given integer input from the user. If the input is invalid, the function should prompt the user to enter a valid integer.
  
  def print_cube():
      while True:
          try:
              number = int(input("Please enter a number: "))
              cube = number**3
              print("The cube of the number is: " + str(cube))
              break
          except ValueError:
              print("Invalid input. Please enter a valid integer.")
  
  assert print_cube()==64
  assert print_cube()==27
  assert print_cube(in=9)==729
output: def print_cube():
      while True:
          try:
              number = int(input("Please enter a number: "))
              cube = number**3
              print("The cube of the number is: " + str(cube))
              break
          except ValueError:
              print("Invalid input. Please enter a valid integer.")