In: Computer Science
Value |
V/N |
|
|
|
|
|
(Answer)
So we have to find out whether the value given in the table is a valid integer or not.
Python Integer value could be positive or negative whole numbers (without involving any fraction or decimal values).
Moreover, there is no limit to how long an integer value can be.
Let's check one by one:-
a) 3.14 : Since an Integer value could not be in decimal so given value is not an integer value.
Therefore, we will type N
b) ″Python - /″2018″ : I think here your question is whether 2018 is an integer or not.
So, answer is yes ie is 2018 is an integer because it is a whole number.
Therefore, we will type Y
If your question is whether ″Python - /″2018″ is an integer or not then answer is no.
because it involves string like 'Python' which is not an integer.
c) ″Python - \n2018″ : I think here your question is whether '\n2018' is an integer or not.
So, answer is no ie is \n2018 is not an integer because it involves character like \n.
Therefore, we will type N
If your question is whether ″Python - \n2018″ is an integer or not then answer is no.
because it involves string like 'Python' which is not an integer.