• Python User Defined Functions

    Python User Defined Functions

    Python User Defined Function Table Of Contents: What Is A User Defined Function? Creating User Defined Functions. Calling User Defined Functions. Function With Return Type. Parameterized Functions. Default Arguments. Keyword Arguments. Variable Length Arguments. Pass By Reference Or Pass By Value. (1) What Is A User Defined Function? A function is a set of statements that take inputs, do some specific computation and produce output. The function which is written by the user is called User Defined Function. The function which comes by default from the programming language are called inbuilt functions. The sole purpose of creating function is to

    Read More

  • Python Dictionary

    Python Dictionary

    Python Dictionary Table Of Contents: What Is A Dictionary? How To Create A Python Dictionary? Accessing Dictionary Elements. Looping Through Dictionary. Adding Elements To Dictionary. Updating Values In Dictionary. Removing Items From Dictionary. Copying A Dictionary. Deleting A Dictionary. (1) What Is A Dictionary? Dictionaries are used to store data in key:value pairs. Key is used to uniquely identify each value. Dictionary preserves the order of the elements stored. Dictionary do not allow duplicate elements to store. Dictionary is mutable in nature, that means we can add,remove or update the values of Dictionary without creating a new memory location. (2)

    Read More

  • Python Sets

    Python Sets

    Python Set Table Of Contents: What Is A Set Data Type? How To Create A Set In Python? Accessing Set Elements. Adding Items Into A Set. Removing Elements From The Set. Mutable Nature Of Set. Looping Through Set. Joining Sets. Deleting A Set. (1) What Is A Set Data Type? Sets are used to store multiple items in a single variable. Set can store heterogeneous elements inside them. A Set is an unordered collection data type, that means set will store your elements in a random order. Set is a mutable data type, that means you can add, remove, update

    Read More