This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task3a | |
# Function to find k'th non repeating character | |
# in string | |
from collections import OrderedDict | |
def kthRepeating(input,k): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task2a | |
score =int(input("Enter the score:")) | |
if score>=90: | |
print("The Grade is A") | |
elif (score <=89 and score>=80): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task1a | |
a = int(input()) | |
print("Loaves Discount") | |
r=185*a | |
d=0.6*r | |
a=0.4*r | |
print("Regular Price ", r) | |
print("Total Discount ", d) |