+ 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.
38 Antworten
+ 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
+ 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.
+ 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.
+ 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 ?
+ 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.
+ 3
yessine okay
+ 2
Rik Wittkopp right 👌
+ 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/
+ 2
yessine Looking into 2nd question
+ 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.
+ 1
Nice to talk to you though, I love excited people :D
I once was excited, but then I took a chill pill , nice 😋
+ 1
Rik Wittkopp I tried explaining that, but I gave up 😂
+ 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'
+ 1
Thanks yessine
I will look into it now.
PS: These sorts of questions are the reason I stopped doing challenges. 🤣
+ 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.
+ 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
+ 1
Maybe it's too complicated for me..
+ 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
+ 1
Hi bro
+ 1
I would totally agree with you if I didn't mention ' the slightest hint ' , I see what you mean really