Today we’ll see how to print it in a systematic manner. So let’s see the code below.Continue reading "Printing 1 to 100 in systematic manner in Python"
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"