You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exercise 1 of dictionaries: "Write a program that receives a dictionary and a key as input and returns the value of the key if it is in the dictionary, None otherwise. The dictionary should remain unchanged."
We should make it clear that the key to return is key, the input variable.
True and False are like 1 and 0 in a set, and there is some wierd behavior if we put 1 and True into a set, one of the examples in sets does this and should probably be taken out.
returns a copy of the string with any leading or trailing characters whitespaces removed
Should be
return a copy of the string with the leading and trailing whitespace characters removed. You can pass a string argument, and all the combinations of its values are removed
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.
Activity
[-]Nov24-Intro-Tutorial: Errors found in `basic_datatypes`[/-][+]Errors found in `basic_datatypes`[/+]edoardob90 commentedon Nov 27, 2024
Exercise 1 of dictionaries: "Write a program that receives a dictionary and a key as input and returns the value of the key if it is in the dictionary, None otherwise. The dictionary should remain unchanged."
We should make it clear that the key to return is
key, the input variable.Snowwpanda commentedon Nov 27, 2024
edoardob90 commentedon Nov 28, 2024
Definition of
string.strip(). We haveShould be
Snowwpanda commentedon Nov 12, 2025
output should be boolean
joinon a string and not a list.edoardob90 commentedon Nov 12, 2025
See #347 (issue related to Nov 2025 tutorial). Just to keep things as tidy as possible, I'm closing this.