+ 5

Errors in the challenges, who's in charge ?

Hello people, I encountered three wrong challenges tonight ! Who's responsible for that ? Please correct them, I sent feedback. I tested all of them in the interpreter. 1- Slice is a supported type in Python, just like numbers, strings and lists. Try type(slice(5)) ---> <class 'slice'> 2- ^ is not a character that "matches the first occurrence" of a character in a string. It rather matches the occurrence at the BEGINNING of a string. 3- The third is obvious, not even worth mentioning.. Thanks.

26th Dec 2019, 1:50 AM
Aymen
38 Respuestas
+ 6
yessine Ahhhh, I see your point. Yes, ^ matches the beginning of a string. Whereas the answer given leads you to believe that it will match throughout the string. Good point
26th Dec 2019, 6:26 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 8
Aymane Boukrouh ,yessine I commend you both for not escalating the misunderstanding. There are many cultures on Sololearn, all with different ways of expressing ourselves. Sometimes, it is easy to be misunderstood, or to misunderstand. Happens to me often.
26th Dec 2019, 5:05 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 6
Hi yessine Would you mind posting the controversial codes as separate questions on this Q&A feed. I believe if we could look at them, we might all get a better understanding of the problem.
26th Dec 2019, 4:52 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 4
yessine well first of all, I was not criticising, I was just answering. Also, this stuff should be posted in the feed, not in the Q&A, unless you have a specific question about a problem. You didn't even mention the challenges that are wrong, so how are we supposed to guess ?
26th Dec 2019, 1:59 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 4
yessine Ok, 2nd answer. Not a clear answer. I agree with you that type(slice) produces a result, and the question was about data types. I also believe the question is misleading as it would apply to type number, instead of type integer. However, all python codes use strings, integers and lists as types of data, to be manipulated. Slice is a function of the list type, not a data type. So technically, the answer is correct, but not presented well.
26th Dec 2019, 6:17 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
yessine okay
26th Dec 2019, 2:17 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Rik Wittkopp right 👌
26th Dec 2019, 5:07 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Hi yessine Ok buddy, Attached is the sololearn link to the section of the python course which states that ^ is used to match the first occurrence of a string. https://www.sololearn.com/learn/Python/2476/
26th Dec 2019, 5:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
yessine Looking into 2nd question
26th Dec 2019, 6:01 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
yessine, 'The stupid way to do things is to post the whole challenge instead of the main controversial part' That may be true, but if you don't give the slightest hint what challenge you are even talking about in an app that has thousands of challenges, I find the question 'what challenge are you even talking about' quite reasonable, and not too excited either.
27th Dec 2019, 4:04 PM
HonFu
HonFu - avatar
+ 1
Nice to talk to you though, I love excited people :D I once was excited, but then I took a chill pill , nice 😋
26th Dec 2019, 2:18 AM
Aymen
+ 1
Rik Wittkopp I tried explaining that, but I gave up 😂
26th Dec 2019, 4:57 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
I agree, Rik Wittkopp That's a good way to ask someone to spend some time to go back to the challenges and fully reproduce them (since you can't copy paste them) , much better than saying : 'what challenges are you even talking about'
26th Dec 2019, 5:40 AM
Aymen
+ 1
Thanks yessine I will look into it now. PS: These sorts of questions are the reason I stopped doing challenges. 🤣
26th Dec 2019, 5:46 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thank you Rik Wittkopp The course states clearly that ^ matches 'the start' of the string, do you agree about that ? This is very different from saying 'the first occurrence of the character in the string'. To be clear : The first occurrence of 'hi' in 'Hello hi is this him ?' matches the first 'hi' not the two other 'hi' in the sentence Whereas "^hi" does not match anything in that string.
26th Dec 2019, 6:05 AM
Aymen
+ 1
Rik Wittkopp Thanks for your time man, although I'm not very convinced as to slice. If you type: print(issubclass(slice,list)) you get False
26th Dec 2019, 6:32 AM
Aymen
+ 1
Maybe it's too complicated for me..
26th Dec 2019, 6:33 AM
Aymen
+ 1
yessine Maybe too complicated for me too. 😁 That's why we keep learning. If we are lucky, one of the gurus on sololearn may clear up the matter with a truly informed opinion. Great topic to discuss. Thanks
26th Dec 2019, 6:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Hi bro
27th Dec 2019, 3:27 AM
Syam Kumar
Syam Kumar - avatar
+ 1
I would totally agree with you if I didn't mention ' the slightest hint ' , I see what you mean really
27th Dec 2019, 4:50 PM
Aymen