Python Forum

Full Version: NEED HELP WITH OU QUIZ
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys,

i am stuck on a few questions from my Open Uni Coding for data analysis (python).

[Image: review.php?attempt=543029&cmid=78777]help

https://trinket.io/python/f4a6834578 - this is the code i input to receive the output 45. The quiz page kept giving me a syntax error for some reason.

i can't seem to upload an image on here but happy to email to someone.
(Jan-04-2020, 10:45 PM)Tskrets Wrote: [ -> ]i can't seem to upload an image on here but happy to email to someone.

Instead, please post the text of the question you are trying to answer, and the full text of your code (in Python tags). Also post the full text of any error you are getting.
dataA = 2
dataB = 3
dataC = 4
dataD = 5

total = (dataA + dataB) * (dataC + dataD)

print(total)

#Syntax Error(s)

File "__tester__.python3", line 20
dataB = 3
^
SyntaxError: invalid syntax


i hope this helps. when i run the code on the python IDLE i get the answer 45 with no syntax error so i am confused as to why i get the above error on the OpenUni quiz.
I have no idea why you are getting that syntax error either. That's extremely simple code, and I see no problems with it. That looks like a problem with your university's system. I would talk to your professor.
My guess is an issue with what you are providing as an EOL and what the server expects.