[metaslider id="213"]

Tuple in Python

In Python programming, a tuple is similar to a list. The difference between the two is that we cannot change the elements of a tuple once it is added on the other side in a list, elements can be changed.

Read more

Association

Association: Its the relationship between two separate classes by their objects. It can be one to one, one to many, many to one and many to many. Composition and Aggregation are two forms of Association. Aggregation: It represents a Has-A

Read more

Polymorphism

Polymorphism mean the condition of occurring in several different forms Polymorphism in Java has two types: Compile time polymorphism (static binding) and Runtime polymorphism (dynamic binding). Method overloading is an example of static polymorphism, while method overriding is an example

Read more

Loop in Python

Range method returns values between start and stop, increasing by the value of step (defaults to 1)…   range(start, stop, step) >>> for i in range (0, 10): … print(i) File “<stdin>”, line 2 print(i) ^ IndentationError: expected an indented block

Read more

String in Python

Str.capitalize() returns a copy of the string containing first character capitalized and the rest in lowercased x = “hello” x.capitalize()   Output: Hello Str.lower() returns a string in which all characters are in lowercased x = “HELLO” x.lower() Output: hello Str.upper() returns

Read more

Hello Python

You can download python from https://www.python.org/downloads/ don’t forget to mention python path in environment variables. You can also install Anaconda and work on Ipython or Jypyter https://www.anaconda.com/download So after installation in your terminal, you can simply run the command: python

Read more

Interface in Java

Interface in java is a model/prototype of a class. It has static constants and methods (without implementation). There can be only abstract methods in the java interface not method body. It is used to achieve abstraction and multiple inheritance in Java.

Read more