Python Flashcards

To effectively remember principal concepts in the python programming language.

1
Q

What is a Parameter?

A

A Parameter allows functions change behaviour based on some input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Function?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Positional Argument?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do return statements contain?

A

return statements contain the return keyword and the value it should return

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the “Input” variable work?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly