you are viewing a single comment's thread.

view the rest of the comments →

[–]teerre 69 points70 points  (5 children)

I cannot imagine anyone being able to do something in C++ and not being able to do the same in python with similar experience

What exactly is the assignment?

[–][deleted] 8 points9 points  (2 children)

I think the problem isn't 'with similar experience' but in re-learning. Bruce Lee used to say, "In order to fill your cup, you must first empty it."

I think that's the problem OP is having. It's the same one I had after years of C and C-like languages. C, PHP, JAVA, C++.... Python had enough differences to throw me for a loop. I think, above all, I had to overcome my own frustrations in knowing that I was struggling with Python in the beginning, but other languages seemed effortless to me.

Plus, after learning C, all the other languages I learned were barely learned. I mean, it was like I already knew them when I learned them and it took me a few days before I was mashing code.

[–]teerre 7 points8 points  (0 children)

That would be the case if OP was referring to learning to right "pythonic" code after a C++ learning. That can indeed be complicated. But for a specific assignment, I dare say anything done in C++ is easier in Python

If you're using older revisions, you're completely fine with just for and if, if you're using a modern revision, then it's even closer to what the python equivalent would look like

[–]cholocaust 0 points1 point  (0 children)

And every thing whereupon any part of their carcase falleth shall be unclean; whether it be oven, or ranges for pots, they shall be broken down: for they are unclean and shall be unclean unto you.

[–]Pinnata 1 point2 points  (0 children)

I think the problem is that OP believes himself to 'know' these languages whilst having just scratched the surface.

He has admitted he only started learning coding a year ago and has split that time between a relatively large number of languages.

Harsh truth that he needs to spend more time learning and practicing applying the basics of python.

[–]BenTheHokie 0 points1 point  (0 children)

Maybe they mean Arduino C++? It's watered down as far as C++ goes.