Learning Python: Getting Started from Java and C++

  • Context: C/C++ 
  • Thread starter Thread starter Entropy
  • Start date Start date
  • Tags Tags
    C++ Java Python
Click For Summary

Discussion Overview

The discussion revolves around getting started with Python programming for someone who has prior experience in Java and C++. Participants share resources, tools, and tips for beginners transitioning to Python, focusing on installation, tutorials, and useful libraries.

Discussion Character

  • Exploratory, Technical explanation, Homework-related

Main Points Raised

  • One participant expresses interest in learning Python and seeks recommendations for a compiler and text editor.
  • Another participant suggests visiting python.org for a great tutorial and recommends O'Reilly books as valuable resources.
  • A participant clarifies that Python is an interpreted language and explains how to run Python code using a text editor or the command-line interpreter.
  • There is a mention of IDLE as a potential tool that comes with Python on Windows.
  • Several links to resources for Python programming, including physics-oriented applications and tutorials, are shared by participants.
  • A participant expresses enthusiasm about starting programming with VPython after reviewing the suggestions.

Areas of Agreement / Disagreement

Participants generally agree on the usefulness of the resources shared, but there is no explicit consensus on a single best approach or tool for learning Python.

Contextual Notes

Some assumptions about prior programming knowledge may influence the recommendations, and the discussion does not address potential challenges specific to transitioning from Java and C++ to Python.

Who May Find This Useful

Individuals with programming experience in Java and C++ looking to learn Python, especially those interested in physics applications or seeking beginner-friendly resources.

Entropy
Messages
479
Reaction score
0
I want to start learning python. Lots of people I know say it's a very good language. Right now I know Java and a little bit of C++, but I'd like to experiment with some other languages, specifically Python. Right now I've got Python 2.4 installed on my PC, now I need to know what to do from here. I've run some google searches to see if there are some sites that can provide an introduction to Python, but I haven't found any good ones. So if anyone can recommend a compiler and text editor for Python I'd really be grateful.
 
Technology news on Phys.org
go to python.org. the tutorial is really great.

other than that, O'Reily books are awesome.
 
Python is an interpreted language, meaning you don't actually compile anything, therefore there is no such thing as a python compiler.

You have two options in terms of running code:

1) Write your code in a text editor and then execute the code:

Example: helloworld.py

Code:
#!/usr/bin/python

print 'Hello World'

./helloworld.py
or
python helloworld.py

2) You can enter into the command-line interpreter and just start entering commands like you do in Matlab or other programs like that.

------------

Python is a very nice language. There are no semicolons and braces to remember.

Just look at the tutorial and you should pick it up rather quickly since you are already famaliar with programming:

http://www.python.org/doc/2.4.1/tut/tut.html
 
Last edited by a moderator:
Last edited by a moderator:
Thanks, guys. VPython looks pretty cool. Can't wait to start programming!
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 15 ·
Replies
15
Views
8K
Replies
1
Views
3K
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K