brcinstitute111@gmail.com

Calculate the Discount & Grand Total in shopping bill by the given criteria in python

View All Python Programs Calculate the Discount & Grand Total in shopping bill by the given criteria Rs.1 to Rs.1000 – 0% Discount Rs.1001 to Rs.3000 – 10% Discount Rs.3001 to Rs.5000 – 20% Discount More than Rs. 5000 – 30% Discount qt=int(input(“Enter the quantity : “))rt=int(input(“Enter the rate : “))tot=qt*rt    dis=0if tot>=1 and

Calculate the Discount & Grand Total in shopping bill by the given criteria in python Read More »

Right triangle patterns in python

View All Python Programs Right Trianlge Type -1 (Source Code) for x in range(1,7):     for y in range(7,x,-1):         print(“”,end=” “)     for y in range(1,x):         print(“*”,end=””)     print(“”) Output       *     **    ***  **** ***** Right Trianlge Type -2 (Source Code) for x in range(1,7):     for y in

Right triangle patterns in python Read More »

Left triangle patterns in python

View All Python Programs Left Trianlge Type -1 (Source Code) for x in range(1,7):     for y in range(1,x):         print(“*”,end=””)     print(“”) Output *************** Left Trianlge Type -2 (Source Code) for x in range(1,7):    for y in range(1,x):        print(y,end=””)    print(“”) Output 112123123412345 Left Trianlge

Left triangle patterns in python Read More »

Check college admission eligibility by 12 percentage and entrance exam marks

View All Python Programs Check college admission eligibility by 12 percentage and entrance exam marks Condition:- 12 percentage must be greater than 80 Entrance marks must be greater than 70 Source Code per=int(input(“Enter 12 percentage : “)) mrk=int(input(“Enter entrance exam marks : “)) if per>80:     if mrk>70:         print(“You are eligible for admission”)    

Check college admission eligibility by 12 percentage and entrance exam marks Read More »

Calculate the electricity bill by entering unit in Python

View All Python Programs Calculate the electricity bill by entering unit Per unit calculation charges on the following condition (1-100) Unit -Rs. 3 (101-500) Unit -Rs. 5 (501-1000) Unit -Rs. 8 (Greater than 1000) Unit -Rs. 10 Source Code u=int(input(“Enter unit :”)) if u>=1 and u<100:     pu=3 elif u>=100 and u<500:     pu=5 elif

Calculate the electricity bill by entering unit in Python Read More »

Find the greatest number between 3 number in Python

View All Python Programs Source Code (Method-1) n1=int(input(“Input 1 number : “)) n2=int(input(“Input 2 number : “)) n3=int(input(“Input 3 number : “)) if n3>n1:     if n3>n2:         print(“N3 is greatest”) elif n2>n1:     if n2>n3:         print(“N2 is greatest”) elif n1>n2:     if n1>n3:         print(“N1 is greatest”) Output Input 1 number : 4Input

Find the greatest number between 3 number in Python Read More »

Enter the number to print rainbow color in Python

View All Python Programs Source Code num=int(input(“Enter the number from 1 to 7 : “)) if num==1:     print(“Violet”) elif num==2:     print(“Indigo”) elif num==3:     print(“Blue”) elif num==4:     print(“Green”) elif num==5:     print(“Yellow”) elif num==6:     print(“Orange”) elif num==7:     print(“Red”) else:     print(“You enter number out of range”) Output Enter the number

Enter the number to print rainbow color in Python Read More »

Find out the division by entering the percentage in Python

View All Python Programs Source Code per=int(input(“Enter your percentage : “)) if per>=60:     print(“Division : First”) elif per>=50:     print(“Division : Second”) elif per>=40:     print(“Division : Third”) else:     print(“Fail”) Output Enter your percentage : 45Division : Third View All Python Programs

Find out the division by entering the percentage in Python Read More »

Create login interface by id and password in Python

View All Python Programs Source Code (Method-1) id=input(“Enter your Id: “) pas=int(input(“Enter your password : “)) if id==”brcinstitute”:     if pas==123:         print(“Login Success”)     else:         print(“Password is wrong”) else:     print(“Id is wrong”) Output  Enter your Id: brcinstituteEnter your password : 78Password is wrong Source Code (Method-2) id=input(“Enter your Id: “) pas=int(input(“Enter your

Create login interface by id and password in Python Read More »