<p>Since we're missing a lot of information, this answer will be fairly bare-bones.</p>
<p>There are no &quot;right&quot; or &quot;wrong&quot; answers here.  Everything hinges on the goal of the course.  And this is as it should be.  Usually, you choose the learning goals for the course, and then choose a language that helps you to achieve them.</p>
<p>If the goal is to understand algorithms and data structures, you would want to work in the language that students would most easily grasp the underlying concepts.  Typically, that would point you towards high-level languages that handle garbage collection for you, but it might be a lower-level language if earlier coursework within the program gives students a lot of fluency in a that language.  (Garbage collection itself could be studied within an algorithms class, as it's essentially a graphs problem.)</p>
<p>If the goal is to get a lot of practice with direct memory management, then you would certainly want to move towards a lower-level language such as C++.  This would come at the expense of some algorithms/data-structures study, but the tradeoff could be considered worthwhile.</p>
<p>It all depends on the outcome the instructor is going for.</p>

CC BY-SA 4.0
2021-04-27T15:53:25.743Z
2021-04-27T15:53:25.743Z
Ben I.
<p>As the question suggests, is it a good idea to teach Data Structure course in Python. Or what be any good rationale for teaching Data Structure course in Python and not in C++.</p>

CC BY-SA 4.0
2021-04-26T14:07:00.387Z
This would depend more on what your students already know of the languages than anything. What is their primary language now? Or are you a student asking a theoretical question?
Buffy
<data-structure>
Why might be the benefits of teaching data structure course in Python?
# Why might be the benefits of teaching data structure course in Python?

(Asked by: username_0 on 2021-04-26)

As the question suggests, is it a good idea to teach Data Structure course in Python. Or what be any good rationale for teaching Data Structure course in Python and not in C++.

**Tags:** data-structure

> **Comments:**
> **username_1**: This would depend more on what your students already know of the languages than anything. What is their primary language now? Or are you a student asking a theoretical question?  

---

## 1 answers

### Answer by username_2 on 2021-04-27. Score: 4

Since we're missing a lot of information, this answer will be fairly bare-bones.

There are no "right" or "wrong" answers here. Everything hinges on the goal of the course. And this is as it should be. Usually, you choose the learning goals for the course, and then choose a language that helps you to achieve them.

If the goal is to understand algorithms and data structures, you would want to work in the language that students would most easily grasp the underlying concepts. Typically, that would point you towards high-level languages that handle garbage collection for you, but it might be a lower-level language if earlier coursework within the program gives students a lot of fluency in a that language. (Garbage collection itself could be studied within an algorithms class, as it's essentially a graphs problem.)

If the goal is to get a lot of practice with direct memory management, then you would certainly want to move towards a lower-level language such as C++. This would come at the expense of some algorithms/data-structures study, but the tradeoff could be considered worthwhile.

It all depends on the outcome the instructor is going for.


---

