00
Days
00
Hours
00
Mins
00
Secs
Artificial Intelligence Challenge / Ends February 11
🎁 Prizes: $100 / $50 / $25 Amazon Gift Cards

Ask coding questions

Posts
Pinned
42
Guide to Asking Coding Questions
# **Guide to Asking Coding Questions** ## **Why?** Good questions help your question be solved faster, and people will want to answer your question Bad questions waste time, you will often not get answers that you asked for, and people will often ignore your questions ## **Quick Questions Guide** ### Do This - Always ask your questions in English - Explain what you want the code to do - Explain what the code does - Include error messages - Share the repl with the line numbers - When you figure out the answer, update your post - Put the repl link, instead of pasting code ### Don't Do This - Don't post homework questions - Don't use caps in the title - Don't use words like 'HELP' or 'PLEASE' in the title - Don't post questions that already have an answer (Search Box) - Don't post feedback or bugs on Talk, use [repl.it/feedback](https://repl.it/feedback) for feedback, or [repl.it/bugs](https://repl.it/bugs) for bugs ## **Steps For Better Questions** 1. Understand the code - Read your code and figure out what each line does - If a concept is unfamiliar, Google it - You can also use a debugger to help you 2. Describe the problem - Explain what you want the code to do - Explain what the code does (error messages) 3. Provide the code - Share a repl that has your code - Share the line number(s) of your code issue - Make sure that the code you shared has the issue 4. Format code constantly - Make sure you code is easy to read 5. Check for typos - Make sure the code does not have any typos that would cause the problem 6. Explain what you did to troubleshoot the problem - Make a list of what you think the problem is and try to fix your problem by going through the list 7. Make a guess on what you think the problem might be - Use the list from the previous step 8. Proofread the question - Make sure you provided everything - Clear all confusions that you think there might be 9. Update people on the question - If you figured out the answer, edit the post to tell people - When you get an answer, fully understand it - Be nice to people who answer your question - Remember that the people wanted to answer your question, but didn't have to 10. Thing to NOT do - Don't post homework questions - Only post questions in English - Do not use caps in the title - Do not use "HELP" or "PLEASE" in the title - Don't post questions that have already been answered (Use search box) - Don't post feedback or bugs on Talk, use [repl.it/feedback](https://repl.it/feedback) for feedback, or [repl.it/bugs](https://repl.it/bugs) for bugs ## **Example:** ### **Question** We have some Python code with an error: [repl](https://repl.it/@Mosrod/Question-Tutorial) ```python rannumexe = int(input()) if rannumexe = 1: print('hi' + rannumexe) ``` ### Step 1 We show what each line does using comments. ```python rannumexe = int(input()) # Asks the user to input a rannumexe if rannumexe = 1: # If the rannumexe equals 1 print('hi' + rannumexe) # Print hi and the rannumexe ``` ### Step 2 We want the code to input a number, and if the number is one, print "hi" and the number. Our problem is that we have an invalid syntax error on line 2 in the main.py file. ``` File "main.py", line 2 if rannumexe = 1: ^ SyntaxError: invalid syntax ``` ### Step 3 Our repl with the issue is located [here](https://repl.it/@Mosrod/Question-Tutorial). We have an issue on line 2 ### Step 4 We can change "rannumexe" to "number" to clear confusion ```python number = int(input()) # Asks the user to input a number if number = 1: # If the number equals 1 print('hi' + number) # Print hi and the number ``` ### Step 5 We don't have any typos ### Step 6 Our problem could be that we improperly used the if statement ### Step 7 The problem could be about using the if statement incorrectly ### Step 8 Our final question: Title: Invalid syntax error about equal signs Content: I have an invalid syntax error on line 2 in the main.py file of this [repl](https://repl.it/@Mosrod/Question-Tutorial). The program should take a number as an input, check if the number is equal to one, and if so, print "hi" and the number. The error point to the equal signs and I think this issue is with the incorrect syntax of the if statement. Help is appreciated :). ```python number = int(input()) # Asks the user to input a number if number = 1: # If the number equals 1 print('hi' + number) # Print hi and the number ``` ``` File "main.py", line 2 if rannumexe = 1: ^ SyntaxError: invalid syntax ``` Steps based on Gordon Zhu's [post](https://medium.com/@gordon_zhu/how-to-be-great-at-asking-questions-e37be04d0603). If you have any suggestions or feedback, post it in the comments below.
19
posted by Mosrod (180) 5 months ago
49
Collaborative programming
Will it ever be possible to have multiple people coding on the same repl at the same time? I know ,for me, this is repl's biggest drawback. Will this ever happen?
15
posted by LifeIsOverrated (63) 9 months ago
25
Music you guys listen to
Do you regularly listen to music? If so, what genres and artists of music?
61
posted by JSer (950) 4 months ago
22
Can we have repl.it daily/weekly question?
I think repl should have a question of the day or question of the week. Questions like the advent of code thing. We could have users submit there questions submissions. That would be really cool and it would give people using repl.it challenges. **Check it out**: https://repl.it/talk/announcements/Repl-Weekly-Questioninfo/8960
9
posted by IEATPYTHON (310) 3 months ago
20
Repl talk
I wonder why Repl talk isn't called "Reply". A perfect opportunity for a play on words.
8
posted by ChandlerMorell (63) 5 months ago
18
What was the hardest part of building repl.it?
Was it the website, maybe piping the data from servers to site? Was organizing the containers for the repls hard?
4
posted by 21natzil (400) 9 months ago
17
Your chance to join TestOS2 development!
Sooooo developers get bored. So i wonder if your guys could spice up TestOS2 examples: apps new decor for program ideas submit the program in the comments https://repl.it/@Ryanand/TestOS-2-DEMO ![TestOS2](https://storage.googleapis.com/replit/images/1546374354709_a2e8efdbd38d4c05cbdfc3e560e53a1d.pn) Online question: Valve can't count to to three so do you think we can do it?
42
posted by Ryanand (25) 2 months ago
16
Pygame
Will repl ever support the Pygame module for python? That would be amazing!
6
posted by LifeIsOverrated (63) 9 months ago
14
💲Make Money 💲Building a Bot 🤖
Hey, I'd like a bot that reads comments and posts from repl talk in realtime (you can use @mat1's `repltalk` pip package) and posts it to a channel on Slack. In the comments propose a bid in dollars and deadline date and I'll select the best bid and when you're done I can send you the money via your favorite money app, gift card, or check.
15
posted by amasad (774) 24 days ago
14
Mobile App?
What do you think about making a mobile app for repl. There are very few functioning IDE apps that allow you to install packages as well.
4
posted by Wilmor21 (20) 9 months ago
13
My first coding class with Tim. thoughts?
I'm learning more how to code with @timmy_i_chen what do you think I should learn?
15
posted by hayaodeh (81) 4 months ago
13
HACKER PLAN
What will happen if we take the hacker plan ?? Will it hide all our repls or only those we want to?? And if we have hidden a particular repl of ours will it open if someone has the link to that repl? Thanks
3
posted by spybrave (336) 7 months ago
13
How do you pronounce repl.it
I know it doesn't really matter, but I usually say "Repel" until my first student accidentally goes onto repel.it.
9
posted by JohnsonTheGreat (22) 8 months ago
12
Can you make the notifications page work?
There is a page [Notifications](https://repl.it/notifications), that does nothing. I think that it could have good potential if it was actually used. I think that you should get notifications when someone up votes your post, comments on your post, or pings you. Also, you could make it so that it told you when you moved a position on the leaderboard. It could also tell you whenever a new competition started, or when one of your posts got pinned. If anybody else has some ideas they want the page to say, comment below please! Thank you!
4
posted by PYer (1062) 3 months ago
12
Command Line Arguments
Hello! Is it possible to use command line arguments in C/C++ repls? I'm working on examples to use in the classroom, and repl.it is good for many things, I'm wondering if this can be done too.
0
posted by oliverosz (11) 7 months ago
12
If you could have one superpower, what would it be?
Not all the questions have to be tech-questions!
15
posted by icr0 (11) 9 months ago
11
What should my avatar be?
I want it to be a question mark type of thing. I want to know if I should keep mine, or become one of these: ![image](https://storage.googleapis.com/replit/images/1532180896347_71e64db09b22344ce08f6e3d72b3896a.pn) ![image](https://storage.googleapis.com/replit/images/1532180957446_b0d9f7b6418e48c364466c975cbfc056.pn) Or can you give me a recommendation?
11
posted by PYer (1062) 7 months ago
11
Can You Make A Languages section?
Can you make a languages section so that people can post languages that they have created?
3
posted by PYer (1062) 7 months ago
11
What coding language do you like best?
i know everyone has their preferences and i kinda want to know what yours is!
20
posted by UndertaleRulez (30) 7 months ago
11
How and when was the initial idea for what would become repl.it conceived?
Did it just suddenly come to you one day, or was it something you had thought about for some time?
3
posted by ifvictr (10) 9 months ago
10
Best resources for learning how to code?
It's no secret that repl.it is a destination for a lot of new programmers or learners. Many of them ask us for recommendations for the best resources to learn how to code. Be it tutorials, videos, courses, etc. We're trying to build the Learn board to become a destination for people to find coding content. In the meantime I'm putting the question to the community: what's the best resources that helped you learn?
13
posted by amasad (774) 5 months ago
10
BEST REPLS
How can I access the best repls made on the site till date?most votes?most comments?winners of previous challenges? A search filter might help.
1
posted by spybrave (336) 7 months ago
10
Chatbots on the web.
Just out of curiousity I searched up my robot (https://repl.it/ibuiltthis/bots/p/buddy-thechat-bot). And I found a link to it but it said that it was owned by @husky19. I would prefer it if it gave a link to my robot, that was under my name. Thank you.
4
posted by PYer (1062) 9 months ago
9
Girl wants to get good at coding...
Hi, my name is Cate and I recently discovered I had an interest in coding so with literally zero experience I started teaching myself python using pycharm IDE. I understand concepts pretty well, but there is soooo much information out there, does anyone have any tips for a n00b like me? Or advice for narrowing down a direction in regards to learning? Any help is appreciated!!
30
posted by catejenn (12) 4 months ago
9
Username Change
I noticed that @JSer changed his username multiple times, but as far as I know, you can't change your username without having your account deleted then creating another one. @JSer kept all his cycles, repls, posts, comments, and account info. How?
4
posted by Lumpy_Wiggles (47) 7 months ago
9
Hack
What is the best language to hack in, and can somebody make a good course in hacking because I want a career in cybersecurity
12
posted by Thorpedo101 (10) 7 months ago
9
Chats
When will we be able to chat with others? Sometimes I've been on people's profiles and wanted to start up some sort of chat with them about a piece of their work to collaborate or help out... Will this ever be implemented - and will someone restrain Timmy_i_chen from being so damn helpful all the time - this guy needs to be promoted xD
6
posted by OwenBradstreet (63) 8 months ago
9
Python and pygame
I know this might be a lot, but will there ever be pygame in python 3? By the way great job, this website has help me learn to code a lot, Thank you.
2
posted by the_username (9) 9 months ago
9
Why does typing in someone else's repl make you fork it?
Can we just have it so that if you want to save your changes, fork it, if not, just close the tab. It would be for small experiments, like you might do in inspect mode on someones website
0
posted by Case_Buttitta (38) 9 months ago
9
Do you actually plan to take over the world?
As some of you might remember, in the repl.it Discord there was discussion of repl.it taking over Reddit and Youtube. Was this serious? @HappyFakeBoulde
4
posted by HappyFakeboulde (135) 9 months ago
Load more