What is the best piece of code you have ever made? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the best piece of code you have ever made?

What does it do? What programming language did you make it in? Why do you like it? This survey is designed to help people who want to code but don't know what to code. This will hopefully inspire them. Hope to hear replies soon!

10th Nov 2017, 8:12 AM
Max S
6 Answers
+ 9
It evaluates an expression like (5+3)*6. https://code.sololearn.com/cNYFlJK37UHg/?ref=app
10th Nov 2017, 8:22 AM
qwerty
qwerty - avatar
+ 3
I really like this code I made once. Actually it was one of my codes in which I put my heart and soul and I was finally able to achieve it perfectly. I was young then...and mad about why I could 't get it. Well, I finally did. This code builds you a Pascal's Triangle for the desired number of rows you enter. https://code.sololearn.com/cf3o8bUdK50w/?ref=app
10th Nov 2017, 8:28 AM
Aaron Stone
Aaron Stone - avatar
+ 3
@Max ... ;-)
10th Nov 2017, 8:36 AM
Aaron Stone
Aaron Stone - avatar
+ 2
My best piece of code reads text from a text file that you have put in there, takes out 4, 5 and 6 letter words and puts them in different arrays. Then the user chooses the level of difficulty and the program chooses a word from the corresponding array and scrambles it. The user has three tries to guess it. I made this in python3. I liked it because it was more than likely that you get a different word every time and because you could paste any size of text, even the whole dictionary!
10th Nov 2017, 8:13 AM
Max S
+ 2
@Aaron That is pretty awesome. I remember there was some kind of challenge like that once.
10th Nov 2017, 8:32 AM
Max S
+ 1
Cool! Especially since it includes the order of operations.
10th Nov 2017, 8:25 AM
Max S