Open in app
Home
Notifications
Lists
Stories

Write
Akansha Srivastava
Akansha Srivastava

Home

Mar 4, 2021

Object oriented programming.1

Object oriented programming Object in python can be thought of as any object in the real world , Lets say a mug Now lets see what all can be associated with a mug : 1. Identity :- it can be a coffee mug , a tea cup , etc 2…

Object Oriented

3 min read


Mar 3, 2021

Inheritance In classes : OOP

‘’’ Inheritance: In basic English Inheritance is the concept of qualities being passed from one generation to another. …

Oop Concepts

2 min read


Mar 1, 2021

__init__constructor and methods

'''Method : they are just like functions ,here the method takes is an object as its parameter constructor : it is a __init__ function , which is automatically called/executed when the class is called . the constructor as the name suggests , constructs attributes of the object for a…

Constructor Function

1 min read


Mar 1, 2021

Understanding Decorators

'''Decorators are the functions that add some functionalities to a given function. they don't change the function/structure of the function but just add a few lines of code below and after the function . A wrapper is a function that provides a wrap-around another function. While using decorator ,all the code…

Python

2 min read


Feb 24, 2021

Import in python

#WHAT IS IMPORT ?? '''In Python, we get access to using a module by importing it . to do this we use the keyword import ''' #HOW IMPORT FUNCTION WORKS?? '''when we write a module name with the keyword import , it starts searching for the module name along with the extension .py…

Python Programming

2 min read


Feb 24, 2021

MAP ,FILTER AND REDUCE

MAP ,FILTER AND REDUCE ''' Map ,Filter and reduce are three functions that can be used for convenience all the functions have a similar syntax syntax map/filter/reduce(function,iterable) lets take examples of all the three ''' #-----------------------------------------MAP---------------------------------- ''' Map function operates the function on the iterable (in this case list1) and return an object since Map function returns an object…

Python Programming

1 min read


Feb 23, 2021

local and Global scope of variables

local and Global scope of variables ''' Scope of a variable is defined as the area with in which the variable is accessible. variable is a label for a location in the memory. Not all variables are accessible, and not all variables exist for the same amount of time. …

Python

2 min read


Feb 23, 2021

Understanding Files

Understanding Files A file is a resource that is used for saving data and information in the hardware of the computer there are various mode of opening a file r : r mode opens a file for read-only. …

Files In Python

3 min read


Feb 23, 2021

Try and Exception Handling in Python.

Try and Exception Handling in Python. First let us learn what an exception is:- exception is an error that is not a syntax error but an error caused by our mistake . Exception can be said as an error, that causes a program to crash. Unlike syntax error, it is syntactically correct and occurs mostly due to…

Python

2 min read

Akansha Srivastava

Akansha Srivastava

Following
  • Rizky Maulana Nurhidayat

    Rizky Maulana Nurhidayat

  • Gaurav Soni

    Gaurav Soni

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable