3 Topics

Member Avatar for
Member Avatar for faizlo

I have this script which can calculate the total of numbers given in a string total = 0 for c in '0123456789': total += int(c) print total How should I modify this script to find the total of if the numbers given in the string form have decimal places? That …

Member Avatar for Gribouillis
0
268
Member Avatar for padton

I have over 10 text files, each file has exactly 2671 floats e.g. 1.232124234 #line 1 2.324234323 #line 2 . . 1.324234234 # line 2671 I would like to the add together the floats on each line with the float on the corresponding line for each of the 10 files, …

Member Avatar for snippsat
0
220
Member Avatar for drjay1627

Hello, I need some help with understanding floats. I have a div named holder, which as the name suggest, is a holder. Inside this holder I have 2 containers. One is the left container and the other is the right container. HTML <div id="holder"> <div id="contentleft"> <p>This is a paragraph. …

Member Avatar for gabrielcastillo
0
157

The End.