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

Issues with Basic Datatypes

Open edoardob90 opened this issue 2 months ago • 1 comments

  • [ ] The last two exercises before "Unpacking" cannot be done without loops. We need to remove them or move them to "Control Flow"
    • solution_sets_of_even_and_odd
    • solution_tuple_increased_by_one. This can be reformulated with a tuple of fixed and known number of elements. E.g., "Given a tuple of 4 elements..."

edoardob90 avatar Nov 12 '25 14:11 edoardob90

Originally posted by @Snowwpanda in #267

  • [ ] Typehint in def solution_a_plus_b_equals_c(a: float, b: float, c: float) -> float: output should be boolean
  • [ ] Lists - Exercise 2: Write a program that takes a list and returns the first and last element of the list as a tuple --> we should reformulate without tuple, since tuples arent explained yet. Check if more exercises have the same mistake.
  • [ ] Strings - Exercise 4: Write a program that receives a list of words as input and returns a string consisting of the words in the list separated by commas. --> Maybe make the desctiption more clear? It was not clear that you need to call join on a string and not a list.

edoardob90 avatar Nov 12 '25 21:11 edoardob90