Is this replit's fault or my fault?

Code:

Training()
#Finish
#Function Training
def Training():
  print("The Training")
1 Like

Code is (usually) executed line by line, so your program will first try to access a function Training and then define a function Training. You need to define your function before you can call it:

def Training():
	print("The Training")


Training()
4 Likes

please follow common naming conventions. This function should be named training

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.