Profilo di 
  
    viemme2
  
  
    
  
    
      
    
  
      
  
      
    | Nome | viemme2 | 
|---|---|
| Indirizzo email | n/a | 
| Messaggi | 1 | 
- 
      
- 2016-04-11 17:04:56
 - unindent does not match any outer indentation level
 - Forum >> Programmazione Python >> Scripting
 - Buona sera
ho un problema con lo script stocks.py
la sintassi mi sembra corretta ma non lavora
Grazie per l' interessamento
VM
def get_returns(symbol, start, end, interval='m'):
history = quote_history_dict(symbol, start, end, interval)
prices = map(lambda x: round(float(x),2), history['Close'])
prices0 = round(float(history['Open']0),2)
returns = map(lambda (x,y): (y/x)-1, zip(prices[0:-1], prices[1:]))
Syntax error "unindent does not match any outer indentation level (stocks.py, line 74)" in file /home/marino/Documents/stocks/stocks.py at line 74, character 72.
return returns
--- Ultima modifica di viemme2 in data 2016-04-11 17:05:57 ---
--- Ultima modifica di viemme2 in data 2016-04-11 17:06:29 --- 
 
  