Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

instruction Back
Instruction

Methods and Functions vs Keywords

*To add parentheses or not to add parentheses… that is the question!* You have now seen print() and input() statements as well as if/else and return. Have you been wondering why some Python code requires parentheses while others don’t? To understand why, we will need to talk about built-in functions, methods, and keywords. What is a Keyword? Python has a set of reserved keywords tha...