I recently started a master's program in computer science, focusing on Python programming. We were assigned to create a calculator using only functions while being limited to addition and subtraction for multiplication and division. While I understand the concept is meant to encourage problem-solving, I felt completely lost. We've just begun learning functions, and I'm still getting used to the syntax. Trying to tackle the mathematical aspect was overwhelming, and I'm worried this means I'm not smart enough for this field. I've been practicing about an hour each day on CodeAcademy, but I still struggled with the task. I don't have a background in computing or math and I'm changing careers, so this is stressful for me. Any advice on how to cope with these challenges? **EDIT**: This master's course is designed for those without a computer science background, so I haven't entered a program I'm underqualified for.
5 Answers
Programming can feel super overwhelming at first, but you’ll find your groove eventually! It took me a couple of semesters to really start clicking with code. Just hang in there, practice a lot, and don't be afraid to mess up. It's all part of the learning journey!
Don't let the teaching style get to you! It can definitely be confusing, especially for beginners. It's perfectly normal to struggle at first. My advice is to keep practicing, write out your code on paper, and don't shy away from asking for help. Programming is all about problem-solving, and it takes time, so don't be hard on yourself. You’ll get there!
Thank you! I really appreciate this advice. I'll keep practicing and not rush myself.
It sounds like your professor is trying to get you to think creatively about using loops. Remember that multiplication can be seen as repeated addition, like calculating how many times you add a number. Focus on breaking it down step by step, like creating a loop that adds a number to itself multiple times. Try writing a basic loop that accomplishes repeated addition and see if that helps you understand how it ties into functions.
Yes, I can see how the logic makes sense, but translating that into code is tough for me. I get overwhelmed trying to connect the dots in class.
It's normal to feel lost at the start! The fact that you're putting in hours on CodeAcademy shows you're dedicated. Just remember, even the best programmers started as beginners. Just keep pushing through, practice consistently, and it will start clicking for you. Don't think you're not smart enough; this stuff just takes practice!
Thanks! I’ll try to be more patient with myself and continue practicing.
You're definitely not alone in feeling this way! Programming can seem intimidating, but it's all about practice and experience. If you're confused, try breaking problems down into smaller steps on paper first, or even draw diagrams. That might help you visualize the solution before jumping into coding. Don't forget to reach out for help whenever you need it!
Great tips! I find that writing things out helps me understand better, especially under pressure in class.

Thanks for sharing your experience! That gives me hope that it will click for me too.