print("""H-statistic:	%s
P-value:	%s""" % (str(H), str(pval)))
if pval < 0.05:
    print('Reject NULL hypothesis - Significant differences exist between groups.')
if pval > 0.05:
    pass
Input format for Kruskal-Wallis test in Python