def clap_convert(txt):
  """convert string of clap values on medium to actualy number

  Args:
      txt (str): claps values

  Returns:
      number on claps (int)
  """ 

  # Medium annotation 
  if txt[-1] == "K":
    output = int(float(txt[:-1]) * 1000)
    return output
  else:
    return int(txt)