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,910 points
28 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,710 points
22 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
10 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
• 1,400 points
14 views
0 votes
0 answers

what does a python type() function do?

can you give an example? READ MORE

1 day ago in Python by Waseem
• 2,070 points
4 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
25 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
34 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
27 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.