• Register
1 vote
26 views

Problem:

Can anyone guide me with the right solution as I am new and learning programming?
Write the code to call the function named send_signal. there are no parameters for this function?

 

7 5 3
5,380 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution: 

In starting i was also facing same type of problem but once you learn and practice you will be clear with coding.

Solution you need is 

send_signal()

or

def send_signal(): # function definition

  print("The function is called without any parameter.")  #print statement

send_signal() #function is called without parameter.

 

8 6 2
10,530 points

Related questions

0 votes
1 answer 30 views
30 views
Problem: I have recently learned about the functions in C++ and I want to write a function that has three string parameters and returns the smallest string of all according to its length. How can I do that? This question might seem nonsense so I apologize for being so dumb. Thanks!
asked Feb 27 Code Learner 9.2k points
0 votes
1 answer 77 views
77 views
Problem: Hi there! I am new to the world of programming. My programming teacher gave me an assignment in which I have to write a program in which there would be a function that will take two strings as input from user and will compare the size of both strings ... the larger string of the two. I have no clue how to do that. Please provide me with the sample program with proper description. Thanks
asked Nov 25, 2020 Code Learner 9.2k points
0 votes
2 answers 470 views
470 views
Problem: I am new to programming, so need query to get query to return max number from 3 integer? Write the definition of a method max that has three int parameters and returns the largest? Can anyone guide with correct code?
asked Feb 17, 2020 maddi86 5.4k points
0 votes
2 answers 11 views
11 views
Problem: I have following code: #include<iostream> #include<conio.h> using namespace std; int cube ( int number) { return number * number * number; } Now, I want to call this function in my main() function. I tried the following: int main() { cube(); cout<<"The cube is "<<value; } But this is giving certain errors. I do not know what is wrong as I am a beginner. Please help. Thanks!
asked Mar 5 Code Learner 9.2k points
0 votes
1 answer 20 views
2 votes
1 answer 86 views
86 views
Problem: I am new in python programming so I am always confused about what is going wrong with my code. Recently I write a code: class showInformation(object): def __int__(self, name, age): self.name = name self.age = age def showName(self): ... showInformation("XXX") TypeError: showInformation() takes no arguments typeerror: object() takes no parameters Whats wrong In my code can anyone explain?
asked Mar 24, 2020 LizzyM 6.1k points
0 votes
1 answer 45 views
45 views
Problem: Hi! I am a beginner and got stuck on an assignment in which I am asked to write a python function that takes three arguments and after performing some calculation, should tell whether the three values can be used to create a triangle. I am unable to build the logic. Please help!
asked Feb 25 Code Learner 9.2k points
0 votes
1 answer 19 views
19 views
I have this code: int max1 (int a, int b) {int m = a;  if (b> m) {m = b;  } return m;  } int main () {cout<< max1 (5,6) <<endl;  cout<< main () <<endl;  return 0;  } I have wanted to test that code but am afraid my computer will be damaged. What happens if the main () function is called?
asked Oct 1, 2020 sasha 16.2k points
0 votes
1 answer 566 views
566 views
Problem : I am new to PHP. When I am trying to execute my PHP code then I am facing below error ( ! ) Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in C:\Users\ mphil\Documents\NetBeansProjects\ ... 45 Call Stack #   Time    Memory  Function    Location 1   0.0000  234208  {main}( )   ..\index.php:0 Please help me in fixing this issue.
asked Feb 15, 2020 mphil 2.3k points
0 votes
1 answer 52 views
52 views
Problem: I wrote the following code which extracts the info. of a file and orders it alphabetically based on its second column objects: import csv import operator import sys def re_sort(in_file='books.csv', out_file='books_sort.csv'): data = csv.reader(open('books. ... function. Do you guys see reasons why this may be happening. The following if a structured version of the contents in the file
asked Feb 21 Mashhoodch 13k points