Answer:
Dennis Ritchie
C was originally developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to make utilities running on Unix
5. Positive and Negative Impact of chemical industries.
Here are the positive impacts first:
=> It can discover a chemical product that can be helpful for us humans like physical beautification, medicines to a certain diseases and more that is beneficial to our health.
=> It can also help us learn more about the chemicals that is presents in our planet.
Here are the lists of the negative impacts:
=> Some Chemicals can be harmful to the nature and also to our body.
=> Some chemical can cause diseases especially those harmful ones.
Answer:
See explaination for the code
Explanation:
def wordsOfFrequency(words, freq):
d = {}
res = []
for i in range(len(words)):
if(words[i].lower() in d):
d[words[i].lower()] = d[words[i].lower()] + 1
else:
d[words[i].lower()] = 1
for word in words:
if d[word.lower()]==freq:
res.append(word)
return res
Note:
First a dictionary is created to keep the count of the lowercase form of each word.
Then, using another for loop, each word count is matched with the freq, if it matches, the word is appended to the result list res.
Finally the res list is appended.
Answer:
63 columns
Explanation:
In Microsoft Word you can insert a table with up to 63 columns, that is the limit to the number of columns allowed in a Word document.
<em>brainliest</em><em>? </em><em>plz! </em>
Answer:
The solution code is written in Python:
- def square(num):
- if type(num).__name__ == 'int':
- sq_num = num * num
- return sq_num
- else:
- return "Invalid input"
-
- print(square(5))
- print(square("Test"))
Explanation:
To ensure only certain type of operation can be applied on a input value, we can check the data type of the input value. For example, we define a function and name it as <em>square</em> which take one input number, <em>num </em>(Line 1).
Before the <em>num</em> can be squared, it goes through a validation mechanism in by setting an if condition (Line 2) to check if the data type of the input number is an integer,<em> int.</em> If so, the<em> num </em>will only be squared otherwise it return an error message (Line 6).
We can test our function by passing value of 5 and "Test" string. We will get program output:
25
Invalid input