Try our "Help Me AI"
Results 1 to 3 of 3

Thread: What is the difference between parameters and arguments in Python?

  1. #1
    Status
    Offline
    Lorraine's Avatar
    Reputed Member
    Join Date
    May 2018
    Posts
    402
    Blog Entries
    1
       Rep Power
    17

    What is the difference between parameters and arguments in Python?

    Hello Friends,

    Python is a general purpose programming language.It's used by many people to do things from testing microchips at intel,to powering Instagram and to build video games.I would like to know the difference between parameters and arguments in Python.


    Can someone explain the difference between parameters and arguments in Python?
    Try to be Dynamic and Independent

  2. #2
    Status
    Offline
    Shana's Avatar
    Reputed Member
    Join Date
    Apr 2018
    Posts
    757
       Rep Power
    17
    Quote Originally Posted by Lorraine View Post
    Hello Friends,

    Python is a general purpose programming language.It's used by many people to do things from testing microchips at intel,to powering Instagram and to build video games.I would like to know the difference between parameters and arguments in Python.


    Can someone explain the difference between parameters and arguments in Python?
    In any programming language, parameters are the ones you define at function prototypes and the arguments are the ones which you pass a value to a parameter.

    Eg: int foo(String x) //here String x is a parameter
    {//some code}

    If you call "foo("fooarg"), here fooarg is the argument you passed to the parameter String x.

  3. #3
    Status
    Offline
    Bhavya's Avatar
    Administrator
    Join Date
    Apr 2018
    Location
    Vavuniya, Srilanka
    Posts
    7,687
    Blog Entries
    50
       Rep Power
    60
    Quote Originally Posted by Shana View Post
    In any programming language, parameters are the ones you define at function prototypes and the arguments are the ones which you pass a value to a parameter.

    Eg: int foo(String x) //here String x is a parameter
    {//some code}

    If you call "foo("fooarg"), here fooarg is the argument you passed to the parameter String x.
    Thank you so much for explaining it with examples, I get a clear understanding
    You're not going to master the rest of your life in one day. Don't stress. Master the day. Make this a daily reminder.

Similar Threads

  1. What do you think arguments are important or not?
    By sayyeshaa in forum General Discussion
    Replies: 5
    Last Post: 06-27-2019, 10:59 AM
  2. How can we avoid unwanted arguments?
    By Tomhardy in forum General Discussion
    Replies: 3
    Last Post: 06-13-2019, 06:06 PM
  3. Healthy Approach to Win Arguments.
    By Bhavya in forum General Discussion
    Replies: 0
    Last Post: 04-09-2019, 01:11 PM
  4. Replies: 8
    Last Post: 07-14-2018, 11:00 AM
  5. Hey Robotics! Give your arguments here.
    By Dhiya in forum Artificial Inteligence
    Replies: 0
    Last Post: 05-23-2018, 08:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Who We Are

The Hub Sri Lanka is an online community portal for all the Sri Lankan digital Citizen's to enthusiastically learn and connect with the society by enormously increasing their knowledge and careers through an extensive collaborative marketplace.

Join us
RSS RSS 2.0 XML MAP HTML