Back to Blog
Coderunner python online5/26/2023 Now we will be working on new features while improving the performance of the bot. Explored the API and sharpened our coding skill. We learnt what people want and what they need. It really feels awesome after making the bot which can help people on twitter. Again I managed to achieve this with an workaround. As the old endpoints are deprecated and all the resources I got online to do it, unfortunately didn't work for me. Another challenge was registering webhook for listening to realtime events. However I finally hosted the bot on replit. □ I didn't get any good free nodejs hosting service which can host the bot 24/7. Java, Ruby, Python, PHP, Perl, Swift, JavaScript. The biggest challenge was hosting the bot. Then it replies to the tweet with the output and the url where user can see his/her code and output. When user mentions the bot with a command and code, the bot takes the code and compiles with the piston API and it saves the code in database. Incorrect For those who dont know Python, one possible answer is: Mark 0.00 out of def sqr(n) 1.00 return n n PFlag question Copy that answer into the answer box and click Check to see how CodeRunner questions behave. Users can use the bot either in main tweet or in reply to other tweets. Transcribed image text: Question 1 Write a Python3 function sqr(n) that returns the square of its numeric parameter n. For rendering, it takes the html, css, js codes and creates a path with the code and replies the url to the tweet. It runs the provided code and replies with the output. Then I thought why do we need to write code in online compilers when the code is short when we can make a bot which will run the code for us right on twitter, so that we don't need to leave twitter and open any other site to run and share code. I saw there are a lot of developers on twitter who usually talk about new technologies, clear coding related doubt of others.
0 Comments
Read More
Leave a Reply. |