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,950 points

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,780 points
0 votes
1 answer

what is a split function in python?

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

answered Apr 22, 2019 in Python by rajesh
• 1,230 points
0 votes
1 answer

what does a conditional operator in python do?

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

answered May 2, 2019 in Python by Mohammad
• 3,210 points
0 votes
0 answers

What does a python type() function do?

Can you give an example? READ MORE

May 24, 2019 in Python by Waseem
• 4,540 points

edited May 27, 2019 by Omkar 55 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, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,465 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
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
0 votes
2 answers

How to use virtual environment in Python?

venv (for Python 3) and virtualenv (for Python 2) allow ...READ MORE

answered Aug 24 in Python by Pistle
• 300 points