Python is an object-oriented programming language .You can easily create and use classes and objects in Python. OPP is the one of the most power full tool of Python. The OPP programming is to combine data and functionality and wrap it inside the object .This is called the object oriented programming . An object oriented […]Continue reading "PYTHON OOPS CONCEPTS"
Hello friends, Moving zero at the end of list is very common problem in programming. You may find the various ways to solve but today we’ll see the easiest way to solve it. So let’s begin Program a=[1,3,0,5,0,4,0,3,2] b= print(“old list is: “,a) for i in a: if i is 0: b.append(i) a.remove(i) print(“New list […]Continue reading "Move all zero at the end of the list – python"
Program to check whether the list B is subsequent of list A or Not In this program,we’ll see how to check the list is subsequent or not with very easy and simple way. Program A = [5,2,1,6,8] B = [2,6,1] bool = False for i in B: for j in A: if(i != j): bool […]Continue reading "Check whether the list is subsequent or not in python"