I've very new to programming so sorry if this is a stupid question, but I'm trying to make a program with multiple functions, but whenever I attempt to define one it comes up with an error.
def startUp():
promptName()
def promptName():
name = input("Hello. Please enter your name: ")
startUp()
SyntaxError: invalid syntax
If it helps the def part in def promptName(): is highlighted red.
defmeans "define." So before you define what a functionpromptNameis, your program has no idea what to do with the string, "promptName()".SyntaxError. OP probably needs to show the entire file. (EDIT: Not entire file, file with MVCE)