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 18, 2018 in Python by Anjali
• 2,950 points
807 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 18, 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 23, 2018 in Python by charlie_brown
• 7,720 points
653 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, 2019 in Python by rajesh
• 1,270 points
644 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, 2019 in Python by Mohammad
• 3,230 points
1,126 views
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 296 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,077 views
0 votes
1 answer
+5 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,790 points
3,500 views
0 votes
1 answer

Empty a list in python.

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

answered Dec 18, 2018 in Python by Shuvodip
490 views
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 25, 2020 in Python by Pistle
• 300 points
502 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP