Python program to insert value at first place in list Get link Facebook X Pinterest Email Other Apps - October 26, 2021 arrey=[]n=int(input("Enter how many values "))for i in range(n): a=randint(1,15) arrey.append(a)print(arrey)a=int(input("Enter Value at first place : "))arrey.insert(0,a)print(arrey) Get link Facebook X Pinterest Email Other Apps Comments
Python program to check if it is a Duck Number or not - September 17, 2021 t=r=x=fag=0 n=int(input("ENTER N : ")) while n!=0: t=n%10 if t==0: fag+=1 n=n//10 if fag>0: print("It's a Duck Number") else: print("It's not a Duck Number") Read more
Comments
Post a Comment