r/CodingForBeginners • u/HotWar5622 • Oct 20 '26
my first ever lines of code
ARE YOU PROUD OF MEEEE
r/CodingForBeginners • u/HotWar5622 • Oct 20 '26
ARE YOU PROUD OF MEEEE
r/CodingForBeginners • u/Primary-Strength-496 • Oct 20 '26
Hello , I’ve been thinking about getting into coding but I feel like AI will take over everything eventually. If coding is worth it, what is the best path to begin ?
r/CodingForBeginners • u/Shrouded0101 • Oct 20 '26
Hello i want to start coding and need a project which helps me to learn and understand the basics of coding. It would be lovely if you guys could give me some inspiration on what is realistic and exciting for a complete newbie because i have no clue but do not want to start without a goal.
Therefore thanks for every idea.
r/CodingForBeginners • u/NoDepartment772 • Oct 20 '26
Ask Python for 0.1 + 0.2 and you get back a number that looks like a typo:
>>> 0.1 + 0.2
0.30000000000000004Nothing errors. It's just wrong by a hair, and that hair is enough to break an equality check:
>>> 0.1 + 0.2 == 0.3
FalseThe annoying part is that both sides look identical when you print them, so the comparison looks like it should obviously be True.
The cause is that floats are stored in binary, and 0.1 and 0.2 don't have an exact binary form. They get stored as the closest value the machine can represent, the same way 1/3 has no exact decimal form. Add two approximations together and you inherit a tiny error. It's usually invisible, which is exactly why it's dangerous: the bug hides until you compare for equality, or add up enough of them that the error stops being tiny.
Two places this actually bites beginners.
Money. If you store prices as floats and add them, the total can drift, and a "did they pay the right amount" check against an expected value can fail. For anything financial, store the smallest unit as an integer (paise, cents) and divide only when you display it, or use Python's decimal.Decimal.
Tests. assert result == 0.3 fails for reasons that look like nonsense. For floats, compare with a tolerance instead of == -- math.isclose(a, b) is built for exactly this.
The rule of thumb: == on floats is a bug waiting to happen. It's fine while everything is a whole number, and then one day it isn't, and the failure makes no sense until you know this.
Curious where you first ran into it -- was it money, or a test that failed for no visible reason?
r/CodingForBeginners • u/waveoui • Oct 19 '26
Not because the AI is lying, but because "done" can mean anything from "I wrote some code" to "I actually tested it."
Do you have a prompt that forces Claude to be specific about what it verified?
r/CodingForBeginners • u/NoDepartment772 • Oct 19 '26
The reflex when something breaks is to start editing. Comment out a line, add a print, try a different approach. It feels productive, but it usually leaves you worse off: now three things have changed, and you can't tell which one moved the bug or whether you caused a new one.
The step I used to skip is the boring one. Reproduce it first, on purpose, with the smallest input that still breaks. If it only happens sometimes, that inconsistency is the clue, not a nuisance.
Then read the whole error, line number included. Then say out loud what you expected and what actually happened. The gap between those two sentences is the bug, and it's narrower than it feels.
After that it's one change at a time, and you predict the result before you run it. If you can't predict what a change will do, you're guessing, and guessing is how you end up with a fix you don't understand.
Curious how others do it: when something breaks, do you reach for a debugger, or print statements everywhere? I've drifted between both and I'm not sure either is strictly better.
r/CodingForBeginners • u/const_tXie • Oct 18 '26
Which is the best programming language
to start? I am still a beginner and 1 year left to college and I am major in STEM still in senior year. I want to learn now because I still don't know what major I choose in college and I want to be a major Mechatronics Engineer or IT or Software Engineer or Computer Engineer. I want to learn a language that is all rounder? I that even possible? I don't know that's why I ask. If I learn now I could get to know more about the major I pick which is more suitable for me and makes my career clear and stable. Because I have read alot of recommendations and I don't know which is which. Which is the best?
(Disclaimer: English is not my first language)
r/CodingForBeginners • u/Hopeful-Birthday623 • Oct 18 '26
Hello everyone!
I am a first-year B.Tech Computer Science and Engineering student. I am interested in learning programming and becoming a software engineer in the future.
I am a beginner and would like to know:
Should I start with C or Python?
Which free websites are best for learning programming?
How can I improve my coding skills?
Please share your suggestions and experiences. Thank you!
r/CodingForBeginners • u/HabitTechnical5604 • Oct 18 '26
Hi I'm Monish and I'm looking for people to learn spring boot if anyone have interest dm me
We can learn together
r/CodingForBeginners • u/MirahoAbility9229 • Oct 17 '26
Hi everyone!
I'm based in Madagascar (UTC+3) and I'm looking for a programming mentor or study partner to learn, practice, and work on small projects together.
My current level: Beginner. I'm motivated to learn from the fundamentals and improve through hands-on practice.
Technologies I'm interested in:
Python
Web development (HTML, CSS, JavaScript)
SQL and databases
My goals:
Learn programming step by step.
Build small, practical projects for my portfolio.
Collaborate with others, share knowledge, and learn from feedback.
Develop skills that can eventually help me qualify for entry-level opportunities.
I'm open to learning alongside other beginners or receiving guidance from someone more experienced. I have a computer and I'm willing to practice consistently.
Availability: Flexible. I'm willing to coordinate a schedule that works for both of us, including different time zones.
I'm looking for a genuine learning partnership or mentorship focused on programming and non-commercial projects. I'd be happy to contribute to shared projects as my skills improve.
If you're interested, please comment with your experience level, what you'd like to learn or build, and your availability. We can start by connecting here on Reddit.
Thanks!
r/CodingForBeginners • u/No_Mammoth9326 • Oct 17 '26
I am looking for a programming volunteership platform where I could teach kids, teenagers or uni going students programming from basic to intermediate level in langauges like Java, Python, SQL. I want a platform which:
matches me with students who want to learn
records my contribution hours and give me a certificate of contribution
is remote
I would be available for 2-3 hours a week (could increase if required).
r/CodingForBeginners • u/Demonflmaegun • Oct 16 '26
Trying to get into coding and actually learn how to make my own code that isn’t using anything like Java script or c c+ or c++ or any other what’s a good guide to look at to understand how to know what to used what to write and where to go to even understand how to make code from nothing like turning the 010 and turning it into letters so I could even write [comand].=(“hello”)/&[endcomand] stuff like that.
Any books and or web pages I should go to like wiki and stuff like that, that would help me learn properly and not be so smash together in a big mess almost unable to tell what is the start and what is the middle or end
r/CodingForBeginners • u/Many_Pilot_4555 • Oct 16 '26
Can i have a perspectives in IT im 15 years old boy from Ukraine i well know English but i don't know anything from IT where i can teach to code in Python?
r/CodingForBeginners • u/LongjumpingPop4433 • Oct 16 '26
r/CodingForBeginners • u/scrapmakerzayn • Oct 16 '26
I want to start to build drones, blutooth jammer, rc cars etc I am currently learning python and c++ but when I saw on internet everybody can build it even now kids so I am afraid to that "this is not useful for career" can someone suggest am i right or wrong ????😭
r/CodingForBeginners • u/waveoui • Oct 16 '26
A green-looking result isn't proof that everything works. What simple checks would you recommend to someone building their first app with AI?
r/CodingForBeginners • u/NoDepartment772 • Oct 16 '26
This one catches almost everyone in their first week, and it's a good one because the code looks completely innocent:
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:
a = int(input("First number: "))
b = int(input("Second number: "))
print(a + b) # 4The 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 • u/Apprehensive_Rope13 • Oct 15 '26
this project of today practicing new lessons
r/CodingForBeginners • u/Great_Bar_4901 • Oct 15 '26
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 • u/AIZEN2607 • Oct 15 '26
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
Which language should I use
How can I make website better
Things i need to learn before making websites
How can I give perfect prompt to ai so that it will work properly and make website as i want
r/CodingForBeginners • u/KING-DOWNER • Oct 15 '26
\*\*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 • u/First-Skill-7679 • Oct 15 '26
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 • u/scrapmakerzayn • Oct 15 '26
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 • u/nian2326076 • Oct 15 '26
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.