So I am enrolled in a free OpenLearn course 'Learn to code for data analysis' with The Open University.
The course teaches basic coding techniques using Python and does this via Jupyter Exercise books.
Attached is an image of question 1 from the 'Practise Quiz', that is available to complete after finishing the exercises, and my answer based on what is taught in the Jupyter Exercise books.
Bear in mind at no point have they indicated that our answers is the quiz should be in any other format that what we have already learnt in the exercises.
I have some experience with C++, C# excel and VBA so something as basic as adding together 2 different sets of variables and the multiplying them together isn't THIS difficult.
I've also attached an image of the error I get (seems to be a Syntax Error) but this early into the course they have not explained anything regarding Syntax Errors or how to fix them.
I just have no idea how they want this answer written or what they expect from me.
Has anyone had any experience with this course of similar issue?
maybe try this:
dataA = 2
dataB = 3
dataC = 4
dataD = 5
answer = (dataA+dataB)*(dataC+dataD)
I think the problem lies in that there is no variable assigned to the calculation. (Even though python accepts it as correct syntax. the program you are using might not be able to see that you have done the calculation because it is not saved)