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
Tanika imagines how her parents will respond to her failing grades, interprets their screaming as a sign of disappointment, and
Alja [10]

Answer:

<em>Looking-glass self </em>

Explanation:

<em>The looking-glass self concept is known as when a person or individuals reflect on themselves on how people think towards them, or a reflection of how we think, how other people will view them.</em>

<em>Three categories comprises of the looking glass self which are,</em>

  • <em>How an individual reacts of how they feel the judgement of others will be seen.</em>
  • <em>Individuals develop their self esteem better from perceived words from others</em>
  • <em>In any social situation, Individuals or a person imagines how they must appear before others.</em>

<em>In this case, Tanika think of how her parents react towards her, due to her grades she had in school, and it might affect her self esteem and confidence, she has developed a reflection called the looking-glass self theory</em>

8 0
3 years ago
Which of the following is a way humans have an impact on Earth?
mojhsa [17]

Answer:

B

Explanation:

4 0
3 years ago
Read 2 more answers
A phobia is an example of...
Mars2501 [29]

A.  Anxiety disorder

6 0
3 years ago
Public policy concerning the Colorado River affects all of the following states EXCEPT which one?
77julia77 [94]
The answer you are looking for is c
8 0
3 years ago
Read 2 more answers
What was even bigger and stronger than the expanding American empire?
iren [92.7K]

Answer:

The story of America is the story of expanding liberty: an ever-widening circle, .more powerful force now than it was during the heyday of the Victorian era.

4 0
3 years ago
Other questions:
  • 5 ≥ -6 + (h/2). I got h ≥22 is that right
    9·2 answers
  • Sikhism combines aspects of Hinduism and _____. Buddhism Christianity Judaism Islam
    7·2 answers
  • Which was one of the economic problems that the United States was facing during the 1790s? A. The federal government had borrowe
    14·2 answers
  • A police officer believes that evidence of a crime exists in a house and asks a judge to issue a general warrant that allows a s
    5·2 answers
  • How did the lives of the plebeians steadily change during the Roman Republic period?
    12·1 answer
  • Outcomes of the war of 1812.
    15·1 answer
  • When public opinion is voiced and people take action on it, the values of what type of government are being fulfilled?
    6·1 answer
  • In order to begin spending money on your campaign, a presidential candidate must first....
    10·2 answers
  • From which group did most military, church, and government leaders come?
    14·2 answers
  • Does yakut write in the past or present tense? do you think he is a traveler or historian? explain why.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!