Open despadam opened 5 months ago
in the def solution_number_is_even(number: float) -> bool:
the input types do not match. It should be number:int
In the exercise solution_return_first_and_last_element_from_list
, the annotated return type is list[float]
however the solution checks for a tuple[float, float]
. We should make this consistent
popitem
does not remove an arbitrary element but the last element inserted into a dict.
For the record: it takes roughly 3 hours to finish the basic datatypes section, so we might want to give students a bit more time for the next tutorial.
From #233: In the basic datatypes notebook, trying to convert a complex number to float raises a TypeError as expected. However, it doesn't print the error to the console unless it is surrounded by a try...except statement.
import math
insolution_circle_area()
in basic_datatypes and explain thatpi
is defined theresolution_number_is_lower_than_0_or_greater_than_100
in the test we check for>=
==
andisequal
with the float number problem and how is it repsresented in bits