Thread: C++ vs Python

  1. #1
    Registered User
    Join Date
    Dec 2021
    Posts
    2

    C++ vs Python

    I am considering to learn a new programming language. Currently I am considering Python or C++. If I choose Python and let's say I become an expert in it, is there something that C++ can do and Python no? Thank you.

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    Programmers usually know more than one language.
    Start with Python, learn C++ later.

    In general, the differences are:
    Code:
    Python                C++
    ====================  ====================
    Easier to learn       Harder to learn
    Interpreted           Compiled
    Garbage collection    No GC
    Dynamic typing        Static typing
    Slower                Faster
    A little inaccuracy saves tons of explanation. - H.H. Munro

  3. #3
    Registered User
    Join Date
    Sep 2020
    Posts
    150
    I also would recommend starting with Python since it's much easier to learn.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I am considering to learn a new programming language.
    Does this suggest you already know a programming language?

    > If I choose Python and let's say I become an expert in it, is there something that C++ can do and Python no?
    Since Python has a mechanism for calling C and C++, there is always a way out.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Python 3
    By FourAngels in forum Linux Programming
    Replies: 33
    Last Post: 09-11-2015, 02:36 AM
  2. Difference between Python 2 and Python 3?
    By OMG its Ali in forum Tech Board
    Replies: 3
    Last Post: 03-18-2014, 08:06 PM
  3. Python to C++
    By adr in forum C++ Programming
    Replies: 2
    Last Post: 12-07-2011, 03:37 PM
  4. python c api
    By ralu. in forum C Programming
    Replies: 0
    Last Post: 03-01-2009, 01:19 PM
  5. anyone here knows Python ?
    By black in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 09-11-2002, 08:49 AM

Tags for this Thread