0
SyntaxError please someone help me
File "source_file.py", line 18 def t(): ^ SyntaxError: invalid syntax
10 Antworten
+ 3
Please show your full code
+ 2
Line 16: the closing ] is missing
+ 1
Upload it to the code playground and post a link here
+ 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!
0
what's wrong?
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
0
ok
0
how can I send you my full code?
0
I sent in your private message