What’s up?
ok bro I'm writing up a code for a little project and Im stuck on some weirdo s***
heres the code
for j in e:
if j1 == "out":
print("Situation: undefined")
print("Amount owed (with taxes): {0}$\n".format(float(j2))
elif j1 == "in":
print("Situation: TPS + TVQ")
print("Amount owed (with taxes: {0}$\n".format(float(j2)out))
else:
print("Situation: TPS")
print("Amount owed (with taxes): {0}$\n".format(float(j2)inn))
python telling me that theres a syntax error at elif j1 == "in": but that doesnt make any sense????????? the lines under the if,elif and else are indented, its ktt that doesnt show it
ok bro I'm writing up a code for a little project and Im stuck on some weirdo s***
heres the code
for j in e:
if j1 == "out":
print("Situation: undefined")
print("Amount owed (with taxes): {0}$\n".format(float(j2))
elif j1 == "in":
print("Situation: TPS + TVQ")
print("Amount owed (with taxes: {0}$\n".format(float(j2)out))
else:
print("Situation: TPS")
print("Amount owed (with taxes): {0}$\n".format(float(j2)inn))
python telling me that theres a syntax error at elif j1 == "in": but that doesnt make any sense????????? the lines under the if,elif and else are indented, its ktt that doesnt show it
Bro I’m not a coder lmao sorry
smh I thought you were in CS
@bigmancam can help
ok bro I'm writing up a code for a little project and Im stuck on some weirdo s***
heres the code
for j in e:
if j1 == "out":
print("Situation: undefined")
print("Amount owed (with taxes): {0}$\n".format(float(j2))
elif j1 == "in":
print("Situation: TPS + TVQ")
print("Amount owed (with taxes: {0}$\n".format(float(j2)out))
else:
print("Situation: TPS")
print("Amount owed (with taxes): {0}$\n".format(float(j2)inn))
python telling me that theres a syntax error at elif j1 == "in": but that doesnt make any sense????????? the lines under the if,elif and else are indented, its ktt that doesnt show it
Missing the closing parentheses for the prints
Missing the closing parentheses for the prints
im so f***ing ret arded smh
I closed the whole thing before seeing your post and wrote it down again and it worked, I see my issue now lmao
Here he go lol
Kyrie lowkey a barb
Here he go lol
@PutneySwope this is your hero
Here he go lol
F***ing idiot
ok bro I'm writing up a code for a little project and Im stuck on some weirdo s***
heres the code
for j in e:
if j1 == "out":
print("Situation: undefined")
print("Amount owed (with taxes): {0}$\n".format(float(j2))
elif j1 == "in":
print("Situation: TPS + TVQ")
print("Amount owed (with taxes: {0}$\n".format(float(j2)out))
else:
print("Situation: TPS")
print("Amount owed (with taxes): {0}$\n".format(float(j2)inn))
python telling me that theres a syntax error at elif j1 == "in": but that doesnt make any sense????????? the lines under the if,elif and else are indented, its ktt that doesnt show it
Lemme pull up idle
ok bro I'm writing up a code for a little project and Im stuck on some weirdo s***
heres the code
for j in e:
if j1 == "out":
print("Situation: undefined")
print("Amount owed (with taxes): {0}$\n".format(float(j2))
elif j1 == "in":
print("Situation: TPS + TVQ")
print("Amount owed (with taxes: {0}$\n".format(float(j2)out))
else:
print("Situation: TPS")
print("Amount owed (with taxes): {0}$\n".format(float(j2)inn))
python telling me that theres a syntax error at elif j1 == "in": but that doesnt make any sense????????? the lines under the if,elif and else are indented, its ktt that doesnt show it
What is j1 defined as bro
What is j1 defined as bro
Striker helped me out bro, I missed a paranthese in the prints
its referencing the first value in the list j but ktt doesnt show square brackets