1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dezoksy [38]
2 years ago
12

Define a function named signof that recieves an integer argument and returns the value 1 if the argument

Social Studies
1 answer:
arsen [322]2 years ago
7 0

The signof function of COSC can be defined as following:

def signOf(int):

>>> if int>0:

>>> >>> return 1

>>> elif int==0:

>>> >>> return 0

>>> else:

>>> >>> return -1

It receives an integer argument and returns the value 1 if the parameter is positive, 0 if parameter is 0 and -1 if the parameter is negative.

<h3>What are functions in computing?</h3>

Code units that are "self contained" and carry out a particular purpose are called functions. Typically, functions "take in," "process," and "return" data and results. Once a function has been written, it can be utilized countless times. It is possible to "call" functions from within other functions.

To know more about functions, visit:

brainly.com/question/19181382

#SPJ4

You might be interested in
What if there is no mobile phone?<br><br>mark as brainliest makasagot ngayun ng tama​
MA_775_DIABLO [31]

Answer:

we wouldnt be able to make easy contant

4 0
3 years ago
Read 2 more answers
Korea was separated by armed conflict following World War II and reunited after the Paris Peace Accords. Please select the best
faust18 [17]
The answer is false.
6 0
3 years ago
Read 2 more answers
How are landforms regions different from climate regions
ElenaW [278]


Landform regions are like mountains, plains,  rivers, etc.

Climate regions are deserts (arid), tundra, tropical, etc.

Hope this helps. :)

3 0
3 years ago
Match each contribution to the correct women’s rights leader.
vekshin1

Hello There!

Susan B. Anthony:

1. co founded the National Women Suffrage Association

2. helped establish the weekly newspaper <em>the Revolution</em>

Lucretia B. Mott:

3. published <em>Discourse on Women, </em>which advocated equal rights for women

4. helped organize the first women's rights convention

1. According to Wikipedia, "the National Women Suffrage Association was formed on May 15, 1869 in New York City". It was founded by Elizabeth Cady Stanton, Susan B. Anthony, Lucy Stone and Lucretia Mott.

Explanation and research:

2. Also in NYC, the Revolution was established by Susan B. Anthony and Elizabeth Cady Stanton. This newspaper was published weekly from 1868 to 1872.

3. Lucretia Mott published "Discourse on Women" (a book fighting for women's equality ) in 1850.

4. Along with Elisabeth Cady stanton, Lucretia Mott helped establish the first women's rights convention July 19–20, 1848.

4 0
3 years ago
Difference between refined and unrefined coconut oil.
Step2247 [10]
The difference between refined and unrefined coconut oil is the production process and the use of dried or fresh coconut meat. Refined coconut oil has a neutral taste and scent with a higher smoke point. Unrefined coconut oil has a strong coconut taste and scent with a lower smoke point.
8 0
3 years ago
Other questions:
  • The term federalism describes:________.1. powers granted to the national government by the U.S. Constitution 2. the collection o
    12·1 answer
  • The diversity of religions within the Arab, Persian, and Kurdish ethnic groups in Southwest Asia is a major contributing factor
    12·1 answer
  • Which statement correctly explains land ownership in Arizona?
    8·2 answers
  • Online class sucks D:
    9·1 answer
  • Explain ONE similarity between the spread of Christian communities and the spread of Jewish communities in the period 600 b.c.e.
    5·1 answer
  • What principles did Confucius believe people should follow?
    12·2 answers
  • The nineteenth-century European art movement that was concerned with the power of the imagination and that greatly valued intens
    15·1 answer
  • Cause:Italians wanted to improve their knowledge of people and the world<br> What’s the effect
    5·1 answer
  • Which of the following is not a human use of wetlands?
    10·2 answers
  • Which of the following is true about successful partnerships:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!