Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Are we allowed to import functions from math for our exam?

N
NadeemKirolos (300 points)
2 2 3
in Course info by (300 points)
recategorized by
We have used it several times in lessons so far so I was just curious.
699 views
closed

6 Answers

Best answer
angelo.spognardi (8190 points)
77 156 226
by (8.2k points)
selected by
If the exercise requires any library, it will be already imported for you in the source file. For example, we will see a library for loading and saving PNG images or accessing the file system's content, which will be imported during the exam.
francesco.calzona (5210 points)
5 20 81
by (5.2k points)
Will this work similarly for homework assignment (in general, will you tell us which libraries are allowed)?
angelo.spognardi (8190 points)
77 156 226
by (8.2k points)
Exactly.....
Beray Nil Atabey (7510 points)
13 33 97
by (7.5k points)
Depends on the instructions of the exam questions. (But most likely yes since importing something from math is one of the most basic things)
Diapa (4690 points)
0 1 28
by (4.7k points)
edited by

Unless specificly stated, I guess you can't. However much operations can be done also without the math library, take for example the 1st function that was on the exercises, where you had to use x**1/3 to write the cube root of a number x. I think that the exams will be done in a way such that we'll be able to use functions from the math library also without directly importing it

yGifoom (2160 points)
0 0 20
by (2.2k points)
There are libraries that are included in Anaconda and others that have to be taken from the internet.

i don't see why we shouldn't use the ones that are included, unless specifically stated in the exercises
r0mania (2580 points)
1 2 13
by (2.6k points)

I think that we are allowed to use everything explained during lessons.

nand (6230 points)
1 4 20
by (6.2k points)
Yes, we are allowed to import any functions unless strictly stated otherwise.