Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Connect with a community of experts ready to provide precise solutions to your questions quickly and accurately. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.
Sagot :
Answer:
float
Explanation:
item[ ] is an array of strings.
Since 0.4 is added to it, item[1] obviously has to be converted to a float before the addition can take place.
Answer:
Float
Explanation:
Complete the code.
import csv
inFile = open ("one.txt","r")
outFile = open("another.txt", "w")
myReader = csv.reader(inFile)
for item in myReader:
aWord = item[0]
aNumber = float(item[1]) + 0.4
line = aWord + "," + str(aNumber) + 'Float'
'
outFile.write(line)
Thank you for visiting our platform. We hope you found the answers you were looking for. Come back anytime you need more information. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Westonci.ca is committed to providing accurate answers. Come back soon for more trustworthy information.