Answer:
Three basic functions of language: Informative, Expressive, and Directive Language
- Informative language. Simply put, informative language can be looked at as though it is either right or wrong, or true or false
- Expressive language
- Directive language
D, an acrostic is a "a poem, word puzzle, or other composition in which certain letters in each line form a word or words."
Answer:
The solution code is written in Python 3.
- def processCSV(CSV_string, index):
- data = CSV_string.split(",")
- result = data[index]
- return int(result)
-
- processCSV('111,22,3333,4', 2)
Explanation:
Firstly, create function and name it as <em>processCSV()</em> with two parameters, <em>CSV_string</em> and <em>index</em> (Line 1).
Since the CSV_string is a collection of integers separated by comma, we can make use of Python String built-in method <em>split() </em>to convert the <em>CSV_string </em>into a list of numbers by using "," as separator (Line 2).
Next, we can use the <em>index</em> to extract the target value from the list (Line 3).
Since the value in the list is still a string and therefore we shall use Python built-in method int() to convert the target value from string type to integer and return it as output of the function (Line 4)
We can test our function by using the sample test case (Line 6) and we shall see the expected output: 3333.
Answer:
dictionary data
Explanation:
data = {"apple" : 0.85, "banana" : 0.90, "peach": 1.50}
Known as the 'software development life cycle,' these six steps include planning, analysis, design, development & implementation, testing & deployment and maintenance. Let's study each of these steps to know how the perfect software is developed.