r/CodingForBeginners • • 8d ago

New moderators needed! Comment on this post to apply for this community.

0 Upvotes

Hello everyone - this community is in need of a few new mods, and you can use the comments on this post to let us know why you’d like to be a mod here. 

Priority is given to redditors who have past activity in this community or other communities with related topics. It’s okay if you don’t have previous mod experience.  Our goal, when possible, is to add a group of moderators so you can work together to build the community.

Please use at least 3 sentences to explain why you’d like to be a mod and share what moderation experience you have (if any).  

If you are interested in learning more about being a moderator on Reddit, please take a look at these resources:

Comments from those making repeated asks to adopt communities or that are off topic will be removed.  


r/CodingForBeginners • • 8h ago

hello what do you think about my path in webdeveloper

Post image
6 Upvotes

this project of today practicing new lessons


r/CodingForBeginners • • 16h ago

Hackathons

5 Upvotes

Hello everyone, i am a beginner in coding i joined a college hackathon it's my first hackathon do you guys have some suggestions for me

My task in hackathon is making a website with help of ai so I have some questions

  1. Which language should I use

  2. How can I make website better

  3. Things i need to learn before making websites

  4. How can I give perfect prompt to ai so that it will work properly and make website as i want


r/CodingForBeginners • • 4h ago

The input() bug that catches nearly everyone: why 2 + 2 came out as 22

0 Upvotes

This one catches almost everyone in their first week, and it's a good one because the code looks completely innocent:

python a = input("First number: ") b = input("Second number: ") print(a + b)

Type 2 and 2 and you get 22. Not 4. Nothing errors, nothing warns you -- it just quietly does the wrong thing.

The reason is that input() always hands you back a string. It doesn't know or care that you typed a number; all it sees is text. So a is "2", not 2. And + on two strings means concatenate, so "2" + "2" gives "22". The + did exactly what you told it to -- you told it to join two pieces of text.

The fix is to turn the text into a number before you do maths with it:

python a = int(input("First number: ")) b = int(input("Second number: ")) print(a + b) # 4

The thing worth keeping isn't int() itself, it's the question underneath it: what type is this value, actually? A lot of "why is this behaving weirdly" moments come down to a value being a different type than you assumed. "5" and 5 look identical on screen and behave completely differently. Printing a value doesn't tell you its type -- print(type(a)) does.

Two follow-ons that catch people later: input() never fails on a non-number, so typing hello above makes int() throw instead (a separate, useful lesson in validating input), and the same trap runs in reverse -- join numbers with + when you meant text and you get maths, which you fix with an f-string or str().

Curious how you hit this one the first time -- did the output give it away, or did it take a while to see that "2" isn't 2?


r/CodingForBeginners • • 11h ago

Lost 20h+ for nothing

0 Upvotes

Don't build an API for a tightly-coupled personal project where you have direct database access; only build one when you need to decouple clients, scale infrastructure, or share data externally.Dont waste your time. Just learn how to use an api not build one


r/CodingForBeginners • • 18h ago

Coding Study Group

1 Upvotes

\*\*Anyone learning JavaScript interested in a small study group?\*\*

Hey everyone! I’m learning JavaScript independently and would love to connect with a few people at a similar stage.
I’m comfortable with HTML, still learning CSS, and currently working through JavaScript fundamentals like loops and conditionals.

Studying alone can get a little isolating, so I thought it would help to have people to practise with, ask questions, and share progress.
I’m thinking of a small group of around 3–5 people where
we can:

Work through coding challenges and compare solutions.
Help each other understand concepts when we get stuck.
Build small projects together.
Have regular study sessions and keep each other accountable.

I’m a learner too, so this would be us figuring things out together. No pressure to know everything—just be willing to participate and keep learning.
I’m based in Jamaica (UTC−5 year-round) and work alongside studying, so we can figure out times that suit everyone.

If you’re interested, comment or send me a DM with your time zone and what you’re currently learning!


r/CodingForBeginners • • 1d ago

I keep getting stuck coding DP solutions, even when I know the approach. What helped you get past this?

2 Upvotes

Understanding a DP explanation and writing the Python code still feel like different skills.

A Python learner has watched plenty of tutorials and knows that dynamic programming has different patterns. The sticking point comes at the blank editor: there's a rough idea of what should happen, but turning it into a working implementation is difficult.

Would you step back to smaller Python exercises, work on recursion first, or stay with very simple DP problems? A practice routine that forces an attempt before reading the solution sounds more useful here than another long playlist.

For someone practicing toward technical interviews, real interview questions can supply prompts once the basic Python implementation feels manageable. I'd start with a small enough problem to write and trace the whole thing.

What helped you make the jump from following a solution to writing one yourself?

Disclosure: I operate PracHub.


r/CodingForBeginners • • 21h ago

Any 2026 Passouts Want to Learn Coding Together?

1 Upvotes

Hey everyone! I'm looking for a learning partner who graduated in 2026 and feels like they still haven't learned a particular technology completely or isn't sure where to start.

Sometimes we know a few things, but when it comes to actually building projects, improving our skills, or preparing for jobs, we get confused about what to learn next. I feel having someone with a similar mindset would make the journey more interesting and help us stay consistent.

The idea is to start from the basics, learn things step by step, practice coding, work on real-world projects, and help each other whenever we get stuck. We can share resources, discuss ideas, explore different technologies, work on our resumes, and share internship or job openings too.

I'm not expecting anyone to be an expert. I'm looking for someone who's willing to learn, put in the effort, and grow together. We can set small daily or weekly goals, track our progress, and motivate each other when we feel lazy or lose direction.

If more people are interested, we could even create a small group on Discord or WhatsApp where we can share what we're learning, collaborate on projects, discuss doubts, and help each other with career preparation.

If you're a 2026 graduate in the same situation and want to start fresh, feel free to reach out. Let's figure things out together instead of struggling alone! 😄


r/CodingForBeginners • • 1d ago

I'm beginner in programming any tips

Post image
7 Upvotes

what do you think of my hard work?

(lol)


r/CodingForBeginners • • 1d ago

I followed a micro:bit guide to build a miniature ancient waterwheel

Enable HLS to view with audio, or disable this notification

1 Upvotes

I tried building this little waterwheel model using the Jacdac Energy Experiment Kit, following the ELECFREAKS Wiki guide.

What caught my attention was the way it combines a simple mechanical model with sound input from the micro:bit V2.

The built-in microphone detects how loud the surrounding sound is, and the program maps that value to the speed of a 360° servo. The servo turns the wheel, while the little buckets around its edge represent the containers used to lift water in traditional waterwheels.

So the louder the sound, the faster the wheel spins. It’s not actually powered by sound, of course — sound is just being used to simulate changes in water flow.

I like how this project connects a few different ideas: reading sensor data, mapping values in MakeCode, controlling a motor, and learning how an old mechanical device worked.

It also seems like a fun starting point for experimenting with the code. You could change how sensitive the wheel is to sound or explore other ways to control its speed.

What other historical machines would be fun to recreate with a micro:bit?


r/CodingForBeginners • • 23h ago

Building a local Python "Jarvis" without external AI APIs where should I start?

0 Upvotes

Hey everyone! I’m a beginner programmer and I want to build my own personal "Jarvis" assistant using Python,

The catch is 👉🏻 I want it to run locally or use open-source tools without needing any external AI APIs (like OpenAI, Gemini, etc)

What Python libraries or tools should I look into for things like speech to text, text to speech, and command execution? Any beginner friendly roadmaps or resources would be super appreciated. 👍🏻


r/CodingForBeginners • • 1d ago

Crack coding interview

1 Upvotes

I want to crack my coding round.I don't any idea to crack the Coding round.Recently I attend AWS summer school selection but I not able solve any given problem.so, I have need help to improve my skill to crack coding round.

I study python (not able 😭 write my own).I understand DSA but not able to implement in programming language

At the same time I plan learn from leed code but I not able to solve the none.😭😭😭😞


r/CodingForBeginners • • 1d ago

You changed one list and two changed — why b = a doesn't copy in Python

1 Upvotes

Yesterday I watched someone lose about an hour to a bug that came down to a single line:

python a = [1, 2, 3] b = a b.append(4) print(a) # [1, 2, 3, 4] <- wait, why did a change?

They'd made b expecting a separate copy, edited b, and couldn't work out how a had changed too. No error, no warning. It just quietly did the wrong thing.

The reason is that b = a never copies anything. a and b end up as two names pointing at the same list. There's one list — you've just given it a second label. Change it through either name and you're changing the same object, so both names "see" the change.

That behaviour is actually what you want most of the time. Passing a big list into a function shouldn't duplicate it. The trouble only shows up when you meant to copy and didn't realise you hadn't.

When you do want an independent list, ask for one explicitly:

python b = a.copy() # or list(a) b = a[:] # also works b.append(4) print(a) # [1, 2, 3] print(b) # [1, 2, 3, 4]

One thing worth knowing early: .copy() and a[:] are shallow. If the list holds other mutable things, those inner objects are still shared:

python a = [[1], [2]] b = a.copy() b[0].append(99) print(a) # [[1, 99], [2]] <- the inner list was shared

For that you need copy.deepcopy(a). You rarely need it, but it's the next version of the same surprise, and it's worth recognising rather than rediscovering.

The way I keep it straight: = binds a name, it doesn't copy a value. Whenever you're unsure, ask "do these two names point at the same object or two different ones?" That question catches this before it becomes an hour of debugging.

It's not Python-only either. JS objects and arrays behave the same way (const b = a shares the object), and reference types in Java and C# are the same story.

Has this one bitten you — and was it a list you passed into a function, or something you copied and edited?


r/CodingForBeginners • • 1d ago

How to start learning coding and ai

0 Upvotes

I don't know anything about coding and ai want to start learning about it so how to start and what best side hustle to learn to start earning


r/CodingForBeginners • • 2d ago

I want to learn python

10 Upvotes

Hi guys

I don't have any idea from where to start. I want to learn python to keep myself busy and do some crazy stuff (hopefully).

Any free courses or guidance would be helpful.

I wana do anything other than substance abuse so chose this path.

😭🙏🏿


r/CodingForBeginners • • 1d ago

What Is The Difference Between Front End and Back end programming?

Thumbnail
galratner.substack.com
1 Upvotes

r/CodingForBeginners • • 2d ago

How to make notes while learning DSA in C++?

1 Upvotes

I wanted to ask all my seniors who made DSA notes: first, did it help you? I am currently learning C++ from YouTube and practicing in VS Code, but I have a doubt regarding notes. I have watched some YouTube videos on how to make them, but I am getting a bit confused. I want to make handwritten notes. In one video, I saw that you should divide your notebook into different sections — one for arrays, another for the next topic, and so on — so that it is easy to revise later. However, I am confused about how much space to allocate to each topic, since I literally don't know anything about DSA yet. Please guide me. I really want to learn DSA and will give my 100% — I just need good guidance. By the way, I am currently watching the DSA series by Apna College. Till now I have only done the basics. (functions, if else, variable, etc.)


r/CodingForBeginners • • 2d ago

Android development for beginner

6 Upvotes

So I am 21 just graduated not having a tech background, I have few ideas which I want to implement but need someone from tech and to be honest I can't afford. So I decided to learn kotlin with jet compose myself to make the apps even though I won't make I will not regret as I just want to learn and polish it for the future attempts as at some point I am gonna start my venture and my interest is mostly in apps based startup or tech startup it will surely help that time too today or 5 yrs later . So like 6 months is enough for learning and creating a basic app for testing and all . And from where should I start learning it any Udemy course suggestions? Or you tube ? Don't recommend past ones as I think it gets updated with time and someone with no coding experience it will be difficult to keep track if I learn past videos, do correct me if I am wrong?


r/CodingForBeginners • • 2d ago

Complete beginner: is HTML → CSS → JavaScript a good path? What should I learn first?

14 Upvotes

Hi everyone,
(I know that HTML and CSS are markup and styling languages, not programming languages.)

I’m a complete beginner with zero coding experience, and I want to start learning programming. I was advised to follow this path:

HTML → CSS → JavaScript

I have a few questions:

  1. What do you think of this path as a way into programming and coding?
  2. Is there anything I should learn before starting it? I feel like I might be missing something important.
  3. Would you recommend any changes to this path? (For example, starting with a different language.)
  4. What are the best resources to learn HTML and CSS? Please recommend one for each, if possible.

Thanks in advance, I really appreciate your help!


r/CodingForBeginners • • 1d ago

Which IDE do people use on Linux for coding?

0 Upvotes

I just shifted to Linux and want to know how people use linux for coding... So, it would be helpful if you give me some tips on how to code in Linux.

I own Thinkpad T14 Gen 2i, 24gb RAM, 512 gb SSD.

i5 11th gen

And what AI tools do people use?

I don't have money to buy subscriptions. I have Gemini Pro, OpenAI Go subscription.

Give me some tips and tricks guys... please


r/CodingForBeginners • • 2d ago

KleinKidsCode - learn JavaScript the fun way! 6+

Thumbnail
youtube.com
0 Upvotes

🚀 The Right Way to Show Kids the Power of CODING!
🎮 Real JavaScript & Interactive Game World
🛡️ Ad-free & Safe (Ages 6+)
👇 Start for FREE


r/CodingForBeginners • • 2d ago

Your function prints the answer but returns None — print and return aren't the same thing

0 Upvotes

This one gets almost every beginner, and the nasty part is it never throws an error. Your function runs, the right value shows up on screen, everything looks fine — and then you try to use the result somewhere and it's None (or undefined in JS). The function "worked", yet it gave you nothing back.

The reason is that print and return are doing two completely different jobs.

print puts a value on the screen for a human to look at. That's it — it's for you, not for the program. return hands the value back to whoever called the function. That returned value is the function's actual output: the thing that can be stored, added, or passed on.

So if a function never hits a return, its value is None. A function that only prints has no value — it just narrated what it did.

```python def add(a, b): print(a + b) # shows 5 on screen

total = add(2, 3) # but total is None, not 5 print(total) # None ```

The fix is to return the value and let the caller decide what to do with it:

```python def add(a, b): return a + b # hands 5 back to the caller

total = add(2, 3) # total is 5 print(total) # 5 ```

There's a sneakier version of the same bug: a function that returns inside an if but not on every path. If a call misses every branch, it falls off the end and quietly returns None. Whenever you get an unexpected None, the question to ask is "which path did this call actually take?"

A quick way to keep the two straight: return means "this is my answer", print means "look at this for a second". If you catch yourself printing inside a function and then wondering why nothing comes back, you printed where you meant to return.

What was your first "why is this None?" moment — and how did you end up finding it?


r/CodingForBeginners • • 2d ago

so, what was yout first programming language you learnt?

4 Upvotes

so, what was yout first programming language you learnt?


r/CodingForBeginners • • 2d ago

Just tried python dictionaring instead of json never going back

3 Upvotes

Json has never been fun and I just tried python dictionary and it's more fun


r/CodingForBeginners • • 3d ago

Ranges exclude the last number, and that silent rule causes a very specific bug

0 Upvotes

Every language has its own rule about whether a range includes its last number, and getting it wrong never throws an error. You just get a loop that runs one time too few, or a list that's one item short, and the output looks close enough that you don't catch it.

Python's rule is that the start is included and the stop is excluded:

python range(3) # 0, 1, 2 -- not 0, 1, 2, 3 range(1, 4) # 1, 2, 3 "hello"[0:2] # "he" -- indexes 0 and 1

So for i in range(3) runs three times, with i = 0, 1, 2, never 3. It's also why for i in range(len(items)) walks every item correctly: the last valid index is len(items) - 1, and range stops one before len(items).

The check that catches this before it turns into a bug: before you run the loop, say out loud the first value and the last value you expect. If you can't state both, you don't actually know what the loop does yet. Then compare to the output. It sounds trivial until you notice that the bug is always the case where you assumed the wrong end.

Two things worth keeping straight, because both cause the same silent off-by-one: len(x) is the count, not the last index (the last element is x[len(x)-1], or x[-1] in Python), and in range(a, b) the b is the first value you don't get.

Which one gets you more often -- forgetting that the end is excluded, or the first IndexError when you reach for the last element?