Python Vocab
Python terms I have learned
Python Vocab
msg: used to capture the input command, then used as a parameterto print command, causing input to be output to terminal
- for example: msg = input(“Enter a greeting: “) print(msg)
def: key word in Python that defines a function, it defines a group of commands, but does not run them initially
- for example: def question_and_answer(prompt): print(“Question: “ + prompt) msg = input() print(“Answer: “ + msg)
rsp: where response from “question_with_response” is captured in
- for example: return msg