Response to each student
Mar 4, 2021 at 5:27 PM
Explicit means something is stated clearly and concisely, leaving no room for doubt about what is intended. With this definition in mind, an explicit typed variable would be written in the most straightforward, concise form possible.
Implicit is something that is implied but not clearly stated. Keeping this definition in mind, an implicit typed variable is less clearly defined and open to interpretation. Seemingly not the best method for Python interpreter software.
These terms are not directly mentioned in our text, but the text does say that Python does not require variable declaration at all, which means implicit would be best since it would be the easiest to write and Python will recognize it just the same as explicit.
2. Clay Stewart
Mar 4, 2021 at 5:35 PM
Whenever the user provides something in programming that value is called explicit. And when that something happens automatically it would be called implicit. Variables are like containers in memory that store values. We assign different data types to variables in coding. With an implicit variable, most of the coding or work is done automatically behind the scenes by the interpreter. With an explicit variable, this work is done manually by the programmer.
As I think I understand this:
a = 6.2
n = int(a)
a = 6.3
b = 2
print (a + b)
In large-scale applications, explain whether or not explicit declaration has a better impact over implicit declaration.
I would think that explicit declaration would be a better choice in most applications. It would seem to me that any errors would be easier to find if the variable had been explicitly given a value than trying to find a coding error that was occurring behind the scenes. Explicit would leave no room for confusion in the program.