1/4
For studying it g
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
syntax
The set of rules that defines the combinations of symbols that are considered to be correctly structured programs or statements in a programming language.
Example:
“The program failed because of a syntax error.”
Variable
A named place that stores information.
customer_name = "Bellal"customer_name is the variable.
Example:
“This variable stores the customer’s name.”
Function
A reusable block of code that performs a specific task.
def greet(name):return "Hello " + name
Example:
“I created a function that calculates the total price.”
Parameter and argument
A parameter is the input listed when a function is created. An argument is the actual value supplied when it is used.
def greet(name): # name is a parameterreturn "Hello " + name
greet("Bellal") # "Bellal" is an argument