frvalenzuela / TAREA07

0 stars 0 forks source link

nueva gg #59

Open frvalenzuela opened 7 years ago

frvalenzuela commented 7 years ago

holi

a
b``
`c`
d 

work? hope asnvsklvmsaklvnasvolasnvaskngasnasofnasvlnasvjsanvkjasnajkvbaskbjvaskvjbasovbasvnfasncaodvlnaskvnasv somebody !!!! asnvasvnasvnasvonasvsamvcodigo wievonvaosnmas codigo nada`

raw = open('C:\Model\Stocks\list.txt', 'r').read()
stocks = raw.split('\n')

for stock in stocks:
    Data = ystockquote.get_historical_prices(stock, '20120501', '20120716')

# Create empty lists, quick and dirty
    OneClose = [ ]
    OneDate = [ ]

# Populate lists from downloaded data
    for i in range(1, 31):
        OneDate.append(Data[i][0])
        OneClose.append(Data[i][4])
Traceback (most recent call last):
  File "C:/Users/felip/Documents/2017-1 CURSOS/IIC2233 Programación Avanzada/Syllabus/Tareas/T07/examples.py", line 4, in <module>
    print(1+ '2')
TypeError: unsupported operand type(s) for +: 'int' and 'str'

help me

Hola llevo mucho rato intentado resolver este error, tengo definida una variable a = [1,2,3] y otra b="[4,5,6]", cuando intento sumar estas dos listas a+b me sale lo siguiente:

TypeError: can only concatenate list (not "str") to list

tarea7bot commented 7 years ago

ÇRevisaste [aca]() ? Saludos!