python-tutorial icon indicating copy to clipboard operation
python-tutorial copied to clipboard

Issues with Functions

Open edoardob90 opened this issue 2 months ago • 0 comments

  • [ ] Exercise 2, Part 3: The conversion factors between yd and ft to cm are wrong. Should be yd/cm = 1/91.44
  • [ ] Exercise 2, Part 1: round(number, 2) will print 2 significant digits. If they print f"{result:.2f}", this results in 2 decimal places regardless. The wording is wrong. Significant digits isn't what you mean to say. It should probably just say round to 2 digits after the period. Example:
round(27.10, 2)  # 27.1 (correct, because .10 has only 1 significant digit after the decimal separator)

num = 27.10
print(f"{num:.2f}")  # 27.10 (still correct, but the very last 0 is redundant)
  • [ ] Exercise "Longest consecutive sequence", the solution_longest_sequence_best is missing the reference solution, and we always get a KeyError when the testsuite is trying to fetch the reference solution's code

edoardob90 avatar Nov 13 '25 10:11 edoardob90