Python Forum
NEED HELP WITH OU QUIZ
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NEED HELP WITH OU QUIZ
#1
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.
Reply
#2
(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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
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.
Reply
#4
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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#5
My guess is an issue with what you are providing as an EOL and what the server expects.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020