add error correction for broken input formats
This commit is contained in:
		
							parent
							
								
									b71bbb8ef6
								
							
						
					
					
						commit
						94cc2713ed
					
				@ -9,7 +9,8 @@ raw_stats = []
 | 
			
		||||
while True:
 | 
			
		||||
    n = input()
 | 
			
		||||
    if n != "":
 | 
			
		||||
        raw_stats.append(float(n))
 | 
			
		||||
        clear_n = n.replace(",", ".").replace("..", ".")
 | 
			
		||||
        raw_stats.append(float(clear_n))
 | 
			
		||||
    else:
 | 
			
		||||
        break
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user