Drink the blood because it taste like candy and juice.
Answer:
def wordsOfFreqency(words, freq):
text1 = "Apple apPLE mangO aPple orange Orange apple guava Mango mango"
words = []
words1 = []
words1 = text1.split()
words = [x.upper() for x in words1]
freq=[words.count(w) for w in words]
print(dict(zip(freq,words)))
return words
def main():
wordsOfFreqency(words, freq)
if __name__=="__main__":
main() # call main function
Explanation:
This will print the list of strings as per its word frequency.
Output is :
{4: 'APPLE', 3: 'MANGO', 2: 'ORANGE', 1: 'GUAVA'}
Answer:
That's because the value has reached the size limit of the int data type. ... you should use long rather than int , because long can store much larger numbers than int . If ... In other words, a float or double variable can't accurately represent 0.1 . ... If you're using Java to measure the size of your house, you'd need an electron ...
Explanation:
print("welcome to the bill calculator")
minutes = float(input("number of minutes you used: "))
data = float(input("the amount of data you used in GB: "))
print("your basic plan costs $39.99 per month")
mcost = (minutes - 450) * .45
print("you will be charged " + str(mcost) + " for the minutes you used")
print("the monthly data fee is $30.00")
dcost = (data - 3) * 10
print("you will be charged " + str(dcost) + " for the extra data you used")
total = mcost + dcost + 69.99
print("your total bill is " + str(total))
the 20 value your teacher gave may be incorrect, bc 4.2-3*10 = 12 not 20, making the total 109.89