Posts

Showing posts from November, 2020

C programs

Image
Finding the difference between largest and smallest number in an array of positive integer. i/p: 5 i/p: 10 11 7 12 14 o/p : 7 ####PROGRAM########

Learning Web developement

Image
 HTML: http://www.simplehtmlguide.com/cheatsheet.php CSS :   PADDING: It is the space between border and the content. MARGIN : It is teh space outside the border. * means evrything *{     margin : 0;     padding: 0; } /* will reset the changes made */ What are Semantic Elements? A semantic element clearly describes its meaning to both the browser and the developer. Examples of  non-semantic  elements:  <div>  and  <span>  - Tells nothing about its content. Examples of  semantic  elements:  <form> ,  <table> , and  <article>  - Clearly defines its content. The HTML DOM (Document Object Model) When a web page is loaded, the browser creates a  D ocument  O bject  M odel of the page. The  HTML DOM  model is constructed as a tree of  Objects : With the object model, JavaScript gets all the power it needs to create dynamic HTML: JavaScript can change all the HTML elements in the page JavaScript can change all the HTML attributes in the page JavaScript can chang

Learning Java!

Image
  Todays im going to learn Java ! Interface: An  interface in Java  is a blueprint of a class. It has static constants and abstract methods. The interface in Java is  a mechanism to achieve  abstraction . There can be only abstract methods in the Java interface, not method body. It is used to achieve abstraction and multiple  inheritance in Java . In other words, you can say that interfaces can have abstract methods and variables. It cannot have a method body. There are mainly three reasons to use interface. They are given below. It is used to achieve abstraction. By interface, we can support the functionality of multiple inheritance. It can be used to achieve loose coupling. Collections in Java https://www.javatpoint.com/collections-in-java Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion. Java Collection means a single unit of objects. Java Collection framework provides many interfaces (Set, L

Vk's Notebook python

Welcome To my Blog ! Hello Venkatesh! #python program to reverse a number in list with user input. x =[] n = int(input("Enter the number:")) for i in range(0,n):     a = int(input())     x.append(a) # reversing the number in list x.reverse() print(x) Generators: we use generators alo iterator to check one by one values. iterator  is a more general concept: any object whose class has a  __next__  method ( next  in Python 2) and an  __iter__  method that does  return self . Every generator is an iterator, but not vice versa. A generator is built by calling a function that has one or more  yield  expressions ( yield  statements, in Python 2.5 and earlier), and is an object that meets the previous paragraph's definition of an  iterator . Method Overloading: It means two or more function having same name but different number of pararmeters. not likeliy supported in python! Method overiding : It means two method having same name & parameter but each method are in different