python program to convert decimal to the binary number system.

The code given below is to convert decimal to the binary number system . for b in range(0,100): x=int(input(“\nEnter Decimal number : “)) z=x a=1 sun=0 while x!=0: rem=x%2 sun=sun+rem*a a=a*10 x=x//2 print(“Decimal number = “,z,”\n”) print(“Binary number= “,sun) Explanation First for loop for the taking input from the user Continue Reading

python program to find the number of divisor.

x=int(input(“Enter an number:”))a=0count=0for s in range(0,x): a=a+1 if(x%a==0): print(“\nDivident = “,a) count=count+1print(“Number of divisor is “,count) Explanation: Inside the for loop program calculate all the divisor because of if condition . for loop increase the divisor value by one in each time and likely if condition check if the given Continue Reading Web scraping using python

web scraping means to extract data from the website(it may be any kind of datas) . to do such kinds of propose we prefer programming languages like python because we manually cannot do such tasks. In this example we will be using BeautifulSoup frame work of python. so let’s start Continue Reading

python program to find HCF and LCM

x=int(input(“Enter Numbers : \nEnter first number :”))y=int(input(“Enter second number :”)) s=y t=xwhile x!=y: if x>y: x=x-y else: y=y-xprint(“HCF = “,y)lcm=(s*t)/yprint(“LCM = “,lcm)