r/CodingForBeginners • • Oct 25 '26

Question What learning resources would be good for the wiki?

15 Upvotes

Hello,

I'm looking for resources that are good for helping people learn. I am working on the wiki for this subreddit, and I want feedback from the community on which learning resources are good.

Requirements:

  • Must be free
  • Must be geared towards a specific language, or just be a general programming class (e.g CS50)

r/CodingForBeginners • • Oct 24 '26

Question What would you guys like to see on this subreddit?

8 Upvotes

Hello, I am a new moderator for r/CodingForBeginners.

This subreddit was previously abandoned, and thus did not engage with the community very well, so I'm looking to engage with the community.

What would you guys like to see on this subreddit? It could be anything, for example:

  • New rules
  • A wiki
  • New flairs
  • Ideas for megathreads

r/CodingForBeginners • • 8h ago

A Python bug that confuses almost everyone at first: the list that remembers things

11 Upvotes

If you've seen this, you're not alone. Here's a small function. Before reading on, guess what the two lines print.

def add_item(item, basket=[]):
    basket.append(item)
    return basket

print(add_item("apple"))
print(add_item("bread"))

Many people expect:

['apple']
['bread']

But Python 3.13 prints:

['apple']
['apple', 'bread']

Why it happens: the default value [] is created once, when the function is defined, not each time it's called. Every call that doesn't pass basket reuses that same list. You can even see it:

print(add_item.__defaults__)   # (['apple', 'bread'],)

The usual fix: use None as the default and create the list inside the function.

def add_item(item, basket=None):
    if basket is None:
        basket = []
    basket.append(item)
    return basket

print(add_item("apple"))   # ['apple']
print(add_item("bread"))   # ['bread']

Now each call gets its own new list.

A rule of thumb: don't use a list, dict or set as a default value. Numbers, strings and None are fine, because they can't be changed in place.

If anything is unclear, ask below. I'm happy to explain more. Also curious: did you guess right before running it?


r/CodingForBeginners • • 1d ago

We Built a Lucky Spinner That Spins Randomly but Always Knows Where to Stop 🎯

5 Upvotes

We wanted to make a simple prize spinner with micro:bit, but there was one thing we didn't want to compromise on: the spinner could be random, but its final position had to be accurate.

So we built this four-way Lucky Spinner using a PlanetX Smart Brick Motor and parts from the ELECFREAKS Nezha Pro Sport Kit.

There are four possible results: a blue ball, a red ball, a black-and-white soccer ball, and an orange-rimmed soccer ball. Each one represents a number from 1 to 4. When the red pin at the end of the spinner arm points toward one of them, the micro:bit displays the corresponding number.

The interesting part is how the program handles the spin.

Before the first draw, we point the arm toward the blue ball and press Button B. The program saves the motor's current absolute angle as the reference position for Result 1. It doesn't matter whether the motor is physically at 0° or not. What matters is that the program now knows which direction represents the starting point.

When we press Button A, two random values are generated:

  • A result between 1 and 4.
  • A number of full rotations between 3 and 5.

The motor spins at full speed, completes the selected number of rotations, and then moves to the calculated target angle. Since the four prize positions are 90° apart, the program can work out exactly where the arm needs to stop.

For example, if the selected result is 3, the arm needs to finish 180° away from the calibrated starting position. Even if the spinner makes a different number of full rotations each time, the final direction still matches the selected result.

We also added a short delay before showing the number. Once the arm stops, the program waits 0.5 seconds and then displays the result for three seconds. After that, the number disappears and the standby icon comes back. The program temporarily ignores new button presses while a draw is in progress, so the next spin can't interrupt the current one.

I like this project because it brings together a few programming ideas in a very visible way: random numbers, motor angles, calibration, and program states. You can actually see the difference between choosing a random outcome and physically moving a mechanism to the correct position.

It's a small project, but getting the mechanical direction and the on-screen result to agree is what makes it satisfying to watch.

Would you add sound or LED effects to make the final reveal more dramatic?


r/CodingForBeginners • • 1d ago

Hey, my younger brother (about 7) was inspired by hollow knight and Silksong and wanted to make a game of his own and now he wants to learn how to code. Where should I help him start from?

5 Upvotes

Using an Android Phone


r/CodingForBeginners • • 16h ago

For the vibe-coders and complete newbies

0 Upvotes

Hey everyone,
I'm a former SWE with ~15 years of experience. I'm building a toolkit that's meant to be vibe-coded on top of, so I put out a short 25 min video that covers like the very, very basics of software development, kind of aligned with what I thought would be the most beneficial in the age of AI.
I didn't cover git, which in hindsight was a mistake, but if you're curious, take a look. The toolkit will be ready in a few weeks.

https://youtu.be/K1IuquLxfxY


r/CodingForBeginners • • 1d ago

Как начать свой путь

1 Upvotes

Привет всем, я учусь на программиста, но в колледже дают мало информации, так сказать просто базу. Но я хочу преуспеть в веб кодинге, что для этого нужно изучить? Я знаю базу HTML, CSS, c++ и питона. Но я не могу понять, что мне дальше делать


r/CodingForBeginners • • 1d ago

Confused and need guidance...😭

8 Upvotes

I'm Engineering 3rd year grad and almost wasted my time because of managing financial challenges at home... Although I did learned basic web development, and started learning python and js. Now as I don't have much time left what should I do? Should I join any paid online/offline coaching?


r/CodingForBeginners • • 2d ago

Does anyone know any learning sites for mobile for python?

5 Upvotes

I've watched some tutorials but I really don't want to spend 12 hours watching a video on how to code I really just wanna do it at my own pace any website helps!


r/CodingForBeginners • • 2d ago

how might i do this?

1 Upvotes

coding is fun and cool for me, but i have no clue how id approach this


r/CodingForBeginners • • 3d ago

What programming books would you recommend for someone starting from scratch?

17 Upvotes

As a student learning to code, programming books are something i am looking into. I want to get the complete picture from base up, build a strong foundtion. I am particularly interested in - Programming fundamentals and computer science in general. Web development (HTML, CSS, JavaScript). Frontend and backend development. Full-stack development. Overall software development concepts and best practices.I'm open to books for complete beginners as well as ones I'll be able to grow into as I gain experience.


r/CodingForBeginners • • 2d ago

3,000+ people learned SQL with my detective cases (one US college now teaches with it), I built the same thing for Python

3 Upvotes

In June I launched QueryCase, where you learn by working through detective cases instead of watching tutorials. Each case is a short story with a real dataset and a question only your code can answer. It started with SQL, then Excel, and the question I kept getting after that was "can you do this for Python?"

So I built it, and it's now live 😄

Why I think it's worth a look:

  • 3,100+ people have signed up, across 122 countries
  • 19,500+ cases, drills and exams solved on the SQL and Excel courses
  • 530+ people passed the free SQL Rookie exam and earned the certificate
  • An instructor at a US community college used it to teach SQL in a CompTIA Data+ prep lab, then came back with a second class the following term

What's live in Python:

  • Python Foundations (free): the basics from your very first line, ending in an exam and a certificate
  • pandas: 29 cases on working with real data, from filtering and grouping to cleaning messy files and joining tables
  • Statistics with Python: 21 cases, each built around a real decision someone has to make, and each explaining why you'd reach for that method, not just how to type it
  • Short visual lessons that show how an idea works before you write any code
  • A sandbox where you can load your own CSV and practise on it
  • 30 Python interview questions you can read without an account

Machine learning and automation tracks are coming next week! Machine learning takes you from your first decision tree to the kind of fraud model a bank would actually use, and teaches you to test a model honestly so a 90% score means something. Automation is about the jobs that eat an analyst's week, done by code: sorting folders of files, reading and building Excel workbooks, writing reports and emails, and pulling data from APIs and websites.

Your code is real Python running entirely in your browser, so there's nothing to install. Every step is checked as you go, with hints when you're stuck.

It's completely free to start, and you can solve the first case before making an account. I'd really like feedback from people learning Python right now: what's the part that made you want to give up, and does a story help?

querycase.com

Cheers 😄


r/CodingForBeginners • • 2d ago

How should I learn c language?

0 Upvotes

Wanna learn c language, suggest me lectures, or any other material


r/CodingForBeginners • • 2d ago

Cant see what im running (pycharm)

Post image
0 Upvotes

I have 0 knowledge on anythong coding related and im following a tutorial (https://youtu.be/ix9cRaBkVe0?si=flrH6JpjhOJuwbTO) on which im on minute 6:52 and i cant see what im running, the green result of what i write is not there. Whats there is just some default info????


r/CodingForBeginners • • 2d ago

Need help setting up a gui library in C

2 Upvotes

I would owe the world and more to whoever helps me

Okay so hi everyone, i'm fairly new to programming and recently i challenged myself to program something in C, i wanted to make a gui calculator bcs i thought it was fairly simple.

Turns out it's not that easy, and i discovered i had to download gtk4 and learn it, and i'm willing to do that i just need some help on how to download it, set it up and link it, preferably on codeblocks, but vs is great too.


r/CodingForBeginners • • 3d ago

Coding struggles

7 Upvotes

I've struggled learning how to code ever since I was in second year and I'm currently flon course to graduate next month and I don't know what to do.


r/CodingForBeginners • • 3d ago

Has AI helped you learn programming? Looking for feedback & early testers

4 Upvotes

Hi Everyone,

I was wondering if anyone here has used AI to help them understand programming concepts? What was your experience? What worked well and what did not work so well?

A bit of a background to why I am asking this, I've tutored students for a long time (about 10 years), in various topics, including programming, and in the last couple of years, I couldn't shake out the thought of how AI could be a great tool for learning if used properly. I have experienced first hand how tutoring could change how well and deeply students could understand topics opposite to learning in a huge classroom.

I have been working on a project where I am using AI to explain concepts to students, and I am piloting with programming, that's why I am interested to understand what your experience has been with chatbots such as ChatGPT...etc. and if you've used any other tools?

In case you're interested to be one of the first few testers, comment below or send me a DM, would be happy to get your feedback and develop this to be a truly helpful tool.

Thanks,

Daniel


r/CodingForBeginners • • 3d ago

Codédex io Alternative?

3 Upvotes

Loving codedex.io for starting my web dev journey. Finished their free HTML concepts but structure and most of the parts of the course could be accessed only if you become a club member which cost a few dollars. (It's expensive on my currency). Any other alternative platform that has the same experience in codedex that is cheaper per month or free? ​


r/CodingForBeginners • • 4d ago

Best way to learn python from zero?

21 Upvotes

r/CodingForBeginners • • 4d ago

math in coding

7 Upvotes

hello everyone im about to start learning to code (python specifically) and i want to learn the math i would need for it first to make the learning process a bit easier.

any pointers would be greatly appreciated

thx for the help


r/CodingForBeginners • • 4d ago

Computer Science & Info

8 Upvotes

I wanna get into computer science, coding, programming and info basically but I don't know where to start I have yet to learn the basics and im a senior in hs. Does anyone have any resources?


r/CodingForBeginners • • 4d ago

Hi everyone! My teacher asked me to prepare a project about sorting an array using algorithms. I will have to explain the topic in front of the entire class. I want to make the presentation interesting and easy to understand, rather than just explaining the code.

4 Upvotes

r/CodingForBeginners • • 4d ago

CodeNap - snap real Python, JavaScript and TypeScript code together, piece by piece, like a puzzle (free, no sign-up)

Thumbnail play.codenap.app
1 Upvotes

Hi! I'm the developer. In CodeNap you learn to code by assembling real code from pieces: Python, JavaScript and TypeScript, 600 levels. It runs in the browser, no account needed. Feedback is very welcome, especially on the difficulty.


r/CodingForBeginners • • 4d ago

Check out Learn to Program with Scratch : A Visual Introduction to Programming with... on eBay!

Thumbnail ebay.io
1 Upvotes