Call a function in main program (python 3)
ChristopherLecr (1)

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?


You are viewing a single comment. View All
heyitsmarcus (285)

Your function 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

Please mark my comment as the answer if this solved your problem.