• 0 Posts
  • 37 Comments
Joined 8 months ago
cake
Cake day: March 20th, 2024

help-circle



















  • No, nam is a placeholder for whatever is inputed into the function input by the user when the program is ran. Input prints to screen whatever you put () when you first call it. It expects something to then be inputted by the user when the program runs by prompting the user with the message in the (). Whatever the user inputs is then referred to by the variable, in this case “Chuck” was inputted.

    It will make a bit more sense when you start writing functions, you can return whatever results you want from calling a function. Those returns will be referred to by the variable you label it, word on the left of the =.

    In short, whatever is returned by a function is what is “saved” in the variable.