Program def fc(num): bina=bin(num)[2:] complement='' for b in bina: if b=='1': complement+='0…
Read moreProgram arr=eval(input("enter list element")) a=arr[0] b=arr[1] for i in range(0,len(arr)): for j in range(i+1,len(arr)): if …
Read morel=["cat","dog","doll","rat"] prefix="do" output=[] for word in l: if prefix==word[0:len(prefix…
Read moreIf two prime difference is 2 then number is called twin prime number. So to check number is twin prime or not First check number is prime or not. Se…
Read moreProgram to repeat name without using for loop is possible using self recursive function calling condition is set inside the function .function is cal…
Read moreCopyright (c) 2021 NS All Right Reseved
Social Plugin