Answer:
function sum(number) {
if (number == 1) {
return 1;
}
return number + sum(number -1);
}
Explanation:
This is a recursive function, it means that is a function that calls itself for example: if you call the function with sum(5) the process is :
sum(5)
|______ 5 + sum(4)
|_______ 4 + sum(3)
|______ 3 + sum(2)
|_____2 + sum(1)
|_____ 1
the result is 1+2+3+4+5 = 15
Answer:
ClamAV is the open source antivirus you can in your Linux machine.
Select All that apply
Answer:
These are the things that are would be appropriate in a post.
B. Checking your post for typos or grammatical errors.
C. Giving credit to the original author.
D. Including your own thoughts about the article.
Explanation:
The correct answer options B, C, and D" According to unofficial online or internet usage it is believed that sharing informative articles is a reasonable use of a website forum as much the credit goes back to the actual or original author. Also, it is believed that posts should be suitable for data analytics checked for typos and grammatical errors.
Answer:
A single pair of three consecutive double quotation marks.
Explanation:
In Python, a multi-line string can be created by enclosing it in three double quotation marks. For example:
string = """This is a Python multi-line string
This is used to print string in multiple lines
This uses three consecutive quotation marks"""
print(string)
Output:
This is a Python multi-line string
This is used to print string in multiple lines
This uses three consecutive quotation marks
In addition to using three double quotation marks, \n and brackets ( ) are also used to create multi-line string in Python.