Email? Dropbox?...Not sure give one of these a try? Hope this helps
Answer:
class Example:
def __init__(self, val):
self.val = val
def __gt__(self, other):
return self.val > other.val
def __sub__(self,other):
return abs(len(self.val) - len(other.val))
def main():
obj1 = Example('this is a string')
obj2 = Example('this is another one')
print(obj1 > obj2)
print(obj1 - obj2)
main()
\color{red}\underline{Output:}
Answer:
i'm just a kid ku ku ku ku ku ku ku ku ku ku ku ku
Answer:
total = 0
for i in range(5):
product = float(input())
tax = product * 0.07
print('Product price:',product)
print('Product tax:',tax)
print('----------------------')
total += product+tax
print('Total:',total)
Explanation:
Step 1 variables definition
total = 0
Step 2 loop over quantity of products
for i in range(5):
Step 3 ask for price and calculate the tax
product = float(input())
tax = product * 0.07
Step 4 print the product total
print('Product price:',product)
print('Product tax:',tax)
print('----------------------')
Step 5 print the general total
print('Total:',total)