+ 365
Post your Coding Challenge Here.
You can post your interresting coding challenge here. No Homework or "I've got a problem with this" type, rather a cleverly formulated challenge requiring coding to solve. Look at some examples in the thread. Use your personal feed to create the challenge and copy the link here. Do not spam this with anything else, just the link to your post with a description. Do all the answering in the linked post itself and not here. Remember to select the little star on the bottom left of this for updates.
1493 Answers
+ 50
I will try with ThisOne! 😆
Louis Thank you very much! 👍🙌
https://www.sololearn.com/post/31420/?ref=app
+ 36
https://www.sololearn.com/post/31509/?ref=app
+ 29
https://www.sololearn.com/post/127475/?ref=app
+ 25
https://www.sololearn.com/post/45380/?ref=app
+ 21
https://www.sololearn.com/post/756889/?ref=app
+ 19
https://www.sololearn.com/post/116821/?ref=app
Looks more complicated than it is.
+ 19
https://www.sololearn.com/post/123383
+ 18
https://www.sololearn.com/post/80032/?ref=app
+ 18
https://www.sololearn.com/post/133294/?ref=app
+ 17
https://www.sololearn.com/post/741548/?ref=app
+ 16
https://code.sololearn.com/cOq8dqg4lbbF/?ref=app
+ 15
Output Like a Human [challenge]
Sometimes we want our code output to be more like it came from a human rather than from a machine.
Write a code that takes any collection of things, e.g. list, tuple, set, generator expression, and prints the contents the way a human list is written using "," and "and".
Remember sets are unordered and generator expressions have no length!
Examples:
[1] -> 1
[1, 2] -> 1 and 2
[1, 2, 3] -> 1, 2 and 3
[1, 2, 3, 4] -> 1, 2, 3 and 4
(submitted as an assigment)
https://www.sololearn.com/post/60789/?ref=app