En python une fonction renvoie toujours un résultat. Par défaut, si tu n'utilises pas le mot clé return - ce qui est le cas ici - la fonction renvoie None.
En principe None ne s'affiche pas, si il s'affiche c'est parce qu'à mon avis tu as appelé ta fonction de cette manière :
print(afficher_rubik(valeurs))
Alors qu'il faut faire :
afficher_rubik(valeurs)
Voici un petit exemple :
# https://www.jeuxvideo.com/forums/42-47-64677539-1-0-1-0-python-fonction-qui-renvoie-un-none.htm
# fonction_print_none.py
def afficher_hello(name):
print(f"Hello {name}!")
afficher_hello('Corentin') # appel correct
print('-' * 10)
# appel incorrect (va afficher le résultat de la fonction + la valeur de retour de la fonction c.à.d None)
print(afficher_hello('Titouan'))
print('-' * 10)
print_return_value = afficher_hello('Titouan')
print(print_return_value is None)