Posts by Cynthia Silva • 15 points
3 posts
-
0
votes3
answers1234
viewsQ: My String is giving error "unicodeescape"
I’m trying to open a file with data .txt in Python but an error message appears. arq = open('C:\Users\Cintia\Documents\Python\Dados\lbe.txt', 'r') lbe = arq.read() print(lbe) arq.close() The mistake…
pythonasked Cynthia Silva 15 -
0
votes1
answer8585
viewsQ: Indexerror: index 3 is out of Bounds for Axis 0 with size 3
I have this code in Python, but the following error appears: Indexerror: index 3 is out of Bounds for Axis 0 with size 3 Code: import numpy as np import math A=11 T=(math.pi)/60 tf=15000 u=[] x=[]…
pythonasked Cynthia Silva 15 -
0
votes1
answer3283
viewsQ: Typeerror: only length-1 arrays can be converted to Python scalars
Good afternoon. I made a small algorithm on Python, appeared the following error: Typeerror: only length-1 arrays can be converted to Python scalars. Someone could help me. Follow the code. import…
pythonasked Cynthia Silva 15