What does calling a function means in Python?

0 votes
What is the significance of calling a function? In python what does it mean?
Dec 17, 2018 in Python by Anjali
• 2,930 points
49 views

1 answer to this question.

0 votes

Calling a function means that you are making a reference to the function which is written somewhere else. For example:

#!/usr/env python
import os
def foo():
    return "hey let's understand calling a function"
print os.getlogin()
print foo()

This is how you call a function.

answered Dec 17, 2018 by Shuvodip

Related Questions In Python

0 votes
1 answer

What does ' -> ' mean in Python function definitions?

It's a function annotation. In more detail, Python 2.x ...READ MORE

answered May 22, 2018 in Python by charlie_brown
• 7,720 points
63 views
0 votes
1 answer

what is a split function in python?

use of split function in python  At some ...READ MORE

answered Apr 22 in Python by rajesh
• 1,210 points
33 views
0 votes
1 answer

what does a conditional operator in python do?

Conditional operators in python is same as ...READ MORE

answered May 2 in Python by Mohammad
• 3,060 points
51 views
0 votes
0 answers

What does a python type() function do?

Can you give an example? READ MORE

May 24 in Python by Waseem
• 4,470 points

edited May 27 by Omkar 19 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 343 views
+4 votes
6 answers
0 votes
1 answer

Empty a list in python.

You could use the clear() method of list which is parallel ...READ MORE

answered Dec 17, 2018 in Python by Shuvodip
60 views
0 votes
1 answer

How to use virtual environment in Python?

Virtual environment is very common with Python ...READ MORE

answered Dec 17, 2018 in Python by Shuvodip
37 views