I would like to run a function in a man program in python 3, but it is not possible to call the function in the main program. What can I do?
valide hasn't been made yet and so it is inaccessible. To fix that, you just need to define and then run your logic for that function inside of it:
x = input ("Veuillez saisir la chaine d'ADN : ") def valide(x): #run logic here print(x) valide(x)
Please mark my comment as the answer if this solved your problem.