Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Sort by
Single comment thread. View all comments 
level 1

Start off really basic, say build a battleships game. A 5 x 5 grid, 1 battleship placed by the computer and 5 guesses for the user. Then build it out: allow the user to chose the board size, add a difficulty to the game that calculate the number of guesses for easy, normal or hard modes depending on the user choice...

I usually start basic and build it out as I go. Learning new modules, new ways to do things etc and using it on the program. You'll be surprised at how much you improve.

level 2

This is exactly the way to do it.

Community Details

136k

Subscribers

893

Online

Subreddit for posting questions and asking for general advice about your python code.

Create Post
r/learnpython Rules
1.
Posting only the project goal is not allowed.
2.
Be polite.
3.
Read the wiki for answers to common questions.
4.
Don't ask easily searchable questions.
Code Hosting/Formatting

Post your code on these websites and include the link in your thread, or click on the button below to find out how to properly format code and include it in your submission text.

Helpful posting resources

Please check out few of these links to see how to properly ask a software development related questions.

Related Subreddits
r/Python

266,653 subscribers

r/django

31,870 subscribers

r/flask

12,350 subscribers

r/programming

1,232,527 subscribers

r/learnprogramming

679,950 subscribers

r/dailyprogrammer

148,377 subscribers

Commenting Guidelines
  • Try to guide OP to a solution instead of providing one directly.

  • Provide links to related resources.

  • Answer the question and highlight side-issues if any exist.

  • Don't "answer and run", be prepared to respond to follow up questions.

  • Proofread your answers for clarity and correctness.

  • Be polite.

Posting Guidelines
  • Try out suggestions you get and report back.

  • SSCCE Keep your code Short, Self Contained, Correct (Compilable) and provide Example

  • Include the error you get when running the code, if there is one.

  • Ensure your example is correct. Either the example compiles cleanly, or causes the exact error message about which you want help.

  • Avoid posting a lot of code in your posts.

  • Posting homework assignments is not prohibited if you show that you tried to solve it yourself.

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.