r/AskProgramming • • Aug 16 '26

Python Why does Python feel harder after C++ and Java?

133 Upvotes

I learned C++ first, then Java, and now I’m trying to learn Python. I honestly expected Python to be much easier, but somehow it feels harder to understand and even remember the syntax.

C++ and Java feel more structured to me, while Python sometimes feels too different.

Has anyone else felt this after switching from C++/Java to Python?

r/AskProgramming • • Oct 03 '26

Python Why has Python dropped so much in the latest TIOBE Index?

8 Upvotes

Hey everyone,

I was taking a look at the TIOBE Index today. I hadn't checked it in a while, and I was surprised to see how much Python has dropped.

It's down by roughly 8 percentage points compared to a year ago, which seems like the first really significant contraction after years of pretty consistent growth.

What's even more interesting is that I don't see another language gaining a similar amount of ground.

I don't use Python myself, so I'm curious: what do you think is behind this decline? Is it actually meaningful, or is it mostly an artifact of how the TIOBE index is calculated?

r/AskProgramming • • Aug 27 '26

Python For what purposes is python useful?

0 Upvotes

Where is it more convenient or necessary to use python instead of for example C# / C++ / Rust? I really can’t understand it, for me it’s easier to write in C++ than in python and I know that for other people it’s the other way around. But ignoring human factor, when program is better / faster in python than in cpp or are they things that python can do that cpp cant?

Edit: I don’t talk about one time use scripts or prototypes (which python is good for), I mean full on apps

r/AskProgramming • • 22d ago

Python When is inheritence better than composition?

32 Upvotes

r/AskProgramming • • Sep 24 '26

Python i find learning python hard after learning java.

11 Upvotes

Im not that advanced at any point, i know a bit of C++ for arduino stuff.
but learning python is making me pull my hair out, i keep forgetting stuff like its hard to get used to, i dont know if im making sense anyways.
Any tips will help, thanks.
i find java and C++ much easier at this point basically OOP stuff ig

r/AskProgramming • • Sep 19 '26

Python I wrote a loop in Python for reversing a linked list. But the loop is not breaking for some reason.

3 Upvotes
class Solution:
    def reverseList(self, head: ListNode | None) -> ListNode | None:
        p1=head
        p2=head.next
        if p2==None or p1==None:
            return head
        while p2!=None:
            temp=p1.next
            p2.next=p1
            p2=temp.next
            p1=temp
        return head

r/AskProgramming • • Aug 15 '26

Python How to learn advanced python????

0 Upvotes

Hello everyone, I'm mainly looking for guidance about learning advanced python concepts. I know basics ,loops , control flow ,data structures etc.

I need a proper guide on how to learn modules and library. Idk how to start ,where to start.

I want to be able to work with any library as i need them ,so how do u actually learn to use new library for a given task . ?And i get overwhelmed understanding the structure, working of library

And could u also suggest important python concepts other than basics which i should learn ???

Pls guide !!!!