0

SyntaxError please someone help me

File "source_file.py", line 18 def t(): ^ SyntaxError: invalid syntax

13th Apr 2019, 6:33 PM
Pedro Nunes
Pedro Nunes - avatar
10 Respuestas
+ 3
Please show your full code
13th Apr 2019, 6:39 PM
Anna
Anna - avatar
+ 2
Line 16: the closing ] is missing
13th Apr 2019, 6:42 PM
Anna
Anna - avatar
+ 1
Upload it to the code playground and post a link here
13th Apr 2019, 6:51 PM
Anna
Anna - avatar
+ 1
Hi! Add ":" in if condition on line 103. Instead "[ ]" use "( )" in formulas. On line 16 you are trying to take list to power of 1/2. It's impossible!
13th Apr 2019, 7:15 PM
Dmytro Novak
Dmytro Novak - avatar
0
what's wrong?
13th Apr 2019, 6:33 PM
Pedro Nunes
Pedro Nunes - avatar
0
x = int(input('Digite o coeficiente de t²:')) print() y = int(input('Digite o coeficiente de t:')) print() z = int(input('Digite o número sem parte literátia:')) print() print('Função horária = ({}t²) + ({}t) + ({})'.format(x, y, z)) print() a = x*2 aa = x bb = Vo = y cc = So = z delta = [[bb**2 - (4 * aa * cc)]**1/2 def t(): return [(a/2)*(t**2)] + (Vo*t) + So
13th Apr 2019, 6:40 PM
Pedro Nunes
Pedro Nunes - avatar
0
ok
13th Apr 2019, 6:48 PM
Pedro Nunes
Pedro Nunes - avatar
0
how can I send you my full code?
13th Apr 2019, 6:49 PM
Pedro Nunes
Pedro Nunes - avatar
0
I sent in your private message
13th Apr 2019, 6:51 PM
Pedro Nunes
Pedro Nunes - avatar
13th Apr 2019, 6:55 PM
Pedro Nunes
Pedro Nunes - avatar