Showing posts with label 35 value error and type error in python telugu. Show all posts
Showing posts with label 35 value error and type error in python telugu. Show all posts

Wednesday, 12 July 2017

35 value error and type error in python telugu

5000
6000
3000.99
90000
8000
5000
3500


sal=open("C:\\Users\\lachu\\Desktop\\sal.txt","r")
print(sal.read())

#print(file.read())
sal.seek(0)
totalsal=0
for x in sal:  
    totalsal=float(x)+totalsal

sal.close()
print ("tatoal salary is:",totalsal)