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
जम्मू आणि काश्मीर येथे सक्रिय असलेल्या काही दहशतवादी गटांची नावे व त्यांच्या नेत्यांची नावे लिहा.​
Katyanochek1 [597]

Answer:

काश्‍मीर हिमालयाच्या खोऱ्यातील एक प्रदेश. अफगाणिस्तान, मध्य एशिया, तिबेट व भारतीय उपखंड यांच्या मध्यभागी. भारताच्या जम्मू आणि काश्मीर या राज्याचा प्रमुख भाग.

काश्मीर खोऱ्याचा जवळजवळ २/३ भाग भारताच्या ताब्यात 'जम्मू व काश्मीर' या राज्याचा भाग . तर १/३ भाग पाकिस्तानच्या ताब्यात आहे.पाकिस्तानच्या ताब्यातील भागाला पाकिस्तानात 'आजाद कश्मीर' तर भारतात 'पाकव्याप्त काश्मीर' म्हणतात. जम्मू-काश्मीर आणि ईशान्य भारतामध्ये पसरलेला दहशतवाद आणि १४ राज्यातल्या १६५ जिल्ह्यांमध्ये सुरू असलेल्या डाव्या विचारसरणीच्या मूलतत्ववाद्यांमुळे संपूर्ण देशाची सुरक्षितता धोक्यात आली आहे. त्यातच नक्षलवाद्यांना मिळणाऱ्या माफियांच्या मदतीमुळे देशाचे दोन तुकडे झाले आहेत, असे म्हटले तर वावगे ठरणार नाही.

देशातल्या ६०८ जिल्ह्यांपैकी २३१ जिल्ह्यांना आज घुसखोर, दहशतवादी, नक्षलवादी यांच्यामुळे खूप मोठा धोका निर्माण झाला आहे. जम्मू-काश्मीर आणि ईशान्य भारतामध्ये पसरलेला दहशतवाद आणि १४ राज्यातल्या १६५ जिल्ह्यांमध्ये सुरू असलेल्या डाव्या विचारसरणीच्या मूलतत्ववाद्यांमुळे संपूर्ण देशाची सुरक्षितता धोक्यात आली आहे. देशाच्या सुरक्षेवर आलेले संकट पाहता केंद्र आणि संबंधित राज्य सरकार या प्रश्नाच्या मूळापर्यंत पोहोचले आहेत, असे म्हणता येईल का? देशाच्या सुरक्षेच्या दृष्टिकोनातून काही योजनांची आखणी करण्यात आली आहे का? देशाच्या एकसंधतेला चार प्रमुख गोष्टींमुळे धोका आहे. नक्षलवाद्यांनी देशाच्या ४० टक्के भागामध्ये धुमाकूळ घातला आहे. जम्मू-काश्मीरमध्ये १९८८ पासून छुपे युद्ध सुरू आहे. हे राज्य देशाच्या स्वातंत्र्यापासून अक्षरश: लष्कराच्या ताब्यातच आहे.

4 0
3 years ago
Read 2 more answers
Law enforcement officers are more likely to commit than those who choose other professions.
Korvikt [17]

Answer:

True

Explanation: just took the test

8 0
2 years ago
contains the Dome of the Rock, a holy site for Muslims contains the Wailing Wall, a holy site for Jews city where Jesus was cruc
lakkis [162]
Jerusalem, of course
5 0
3 years ago
Read 2 more answers
HELP ME PLEASE
Hunter-Best [27]

Answer:

Kenya

Explanation:

Nigeria is a bit more western.

Egypt is northern.

DRC may be able to be considered eastern, but it does not border the Indian Ocean because it is in the middle and not bordering a large body of water like that.

6 0
3 years ago
Will mark brainliest if u do 1-8
andrezito [222]
The picture is blank? ??
5 0
3 years ago
Other questions:
  • The Cold War was mainly an ideological war of ideas but it had occasional military flare ups name two times the Cold War became
    5·1 answer
  • What was the main work of Jesus Christ on earth?
    11·2 answers
  • All forms of life on earth are linked together in relationships involving _____.
    12·2 answers
  • Nestor is proud to belong to the elite cross-country ski club at his college, but he is glad to not be a member of the downhill
    9·1 answer
  • macro-environmental uncertainty is uncertainty in the organisation���s general environment, including political, regulatory, sta
    14·1 answer
  • Qus 7. Who organized the Dalits into the Depressed Classes Association in 1930?<br>​
    6·1 answer
  • The power of the people reflects which constitutional principle?
    10·1 answer
  • Pleaseeee I neeeddddd answerrrr nowwwe​
    14·2 answers
  • How did the Babylonian Captivity affect Jewish people's faith?
    5·1 answer
  • Metals expand on____ and contract on _____​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!