Notepad all shorcut keys
Notepad all shorcut keys Read More »
View All Python Programs Source Code b=int(input(“Enter the base :”)) ex=int(input(“Enter the exponent :”)) pow=1 for n in range(1,ex+1): pow=pow*b; print(“Power is :”, pow Output Enter the base :3 Enter the exponent :3 Power is : 27 View All Python Programs
Find the power of given number in python Read More »
View All Python Programs Source Code num=int(input(“Enter the number :”)) fact=1 for n in range(1,num+1): fact=fact*n print(“Sum of number is : “,fact) Output Enter the number :5 Sum of number is : 120 View All Python Programs
Find out the factorial of given number in python Read More »
View All Python Programs Source Code st=int(input(“Enter starting number :”)) end=int(input(“Enter end number :”)) sum=0 for n in range(st,end): if n%2==1: sum=sum+n print(“Sum of number is : “,sum) Output Enter starting number :5 Enter end number :20 Sum of number is : 96 View All Python Programs
Find the sum of odd number from in given rang in python Read More »
View All Python Programs Source Code sum=0 for n in range(1,10): if n%2==1: sum=sum+n print(“Sum of number is : “,sum) Output Sum of number is : 25 View All Python Programs
Find the sum of odd number between 1 to 10 in python Read More »
View All Python Programs Method-1 (Source Code) for n in range(1,11): print(n) Output 1 2 3 4 5 6 7 8 9 10 Method-2 (Source Code) for n in range(1,11):print(n,end=”,”) Output 1,2,3,4,5,6,7,8,9,10, View All Python Programs
Print number from 1 to 10 in python Read More »
View All Python Programs Source Code st=int(input(“Enter starting number :”)) end=int(input(“Enter end number :”)) sum=0 for n in range(st,end): if n%2==0: sum=sum+n print(“Sum of number is : “,sum) Output Enter starting number :5 Enter end number :15 Sum of number is : 50 View All Python Programs
Find the sum of even number in given range in python Read More »