Hii everyone, Today i was just solving a problem in hacker-rank. A simple one
to calculate the tip and tax for the meal. The resultant answer should be
rounded off. I first wrote the code as below:
m=float(input())
x=int(input())
t=int(input())
tip=(m*x)/100
tax=(m*t)/100
total=m+tip+tax
print("T
Here is my code..try:
data=open('info.txt')
for each_line in data:
try:
(role,line_spoken)=each_line.split(':',1)
print(role,end='')
print(' said: ',end='')
print(line_spoken,end='')
except ValueError:
print(each_li