+ 3
????? ??????, it's a good thing to ask for hints when going to solve a problem. But for me it's also interesting, what kind of ideas you already have been thinking about. So we can avoid writing things that already has been taken in consideration. So i can also give you a hint, similarely to the answer from Mirielle. - You can start with a for loop by iterating through 'a...z' and doing membership test with the input string. This should be about 5 to 6 lines of code. - If you like, you can rework the loop version to a comprehendion by using all(). - As an additional version you can combine it with a ternary operator so you will then have all code in one line happy coding! 🙂
9th May 2020, 10:03 AM
Lothar
Lothar - avatar
+ 1
????? ?????? could you please show us your attempt? Please put it in Playground and post it here. Thanks!
9th May 2020, 9:12 AM
Lothar
Lothar - avatar