Python Flashcards
To effectively remember principal concepts in the python programming language.
What is a Parameter?
A Parameter allows functions change behaviour based on some input.
What is a Function?
Functions help make code easier to read, run and debug. It is a block of code, given a unique name enabling one call that block of code with just one name. It is one of the ways programmers can store huge amounts of related code together in one place making it easy to reuse that block and even correct that block of code everywhere it’s been used efficiently and at scale.
What is a Positional Argument?
arguments are the names given to the designated values of a function. It serves the same purpose of holding information for specific variables just as functions hold blocks of code called function boy so also do arguments hold the value of a function particularly when that function possesses varying values which in turn affect the behaviour of the function.
What do return statements contain?
return statements contain the return keyword and the value it should return
How does the “Input” variable work?
One has to define a specific request to which a user would respond to, making said user response as the value of the “Input” variable. Without the question/request definition in ones code, “Input” cannot work.