Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,108 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,164 people online right now. Registration is fast and FREE... Join Now!




begining questions about python

 
Reply to this topicStart new topic

begining questions about python

rollin4deshi
post 5 Oct, 2008 - 03:13 AM
Post #1


New D.I.C Head

*
Joined: 31 Jul, 2008
Posts: 4

is python mainly for linux or is it usefull in windows too? im learning c++ and starting to be better then the average joe, but cant really implement the ideas of c++ without refering back to my notes , would python be easier to use and implement then the extensive library of c++?? also does python use a compiler? if not what do i use to work with it,
thanks, kc
User is offlineProfile CardPM

Go to the top of the page

Stutzbach
post 5 Oct, 2008 - 03:24 AM
Post #2


New D.I.C Head

*
Joined: 6 Jul, 2008
Posts: 10



Thanked 3 times
My Contributions


QUOTE(rollin4deshi @ 5 Oct, 2008 - 05:13 AM) *

is python mainly for linux or is it usefull in windows too? im learning c++ and starting to be better then the average joe, but cant really implement the ideas of c++ without refering back to my notes , would python be easier to use and implement then the extensive library of c++?? also does python use a compiler? if not what do i use to work with it,
thanks, kc


Python can be used for Windows, too. Here's a link to the: Python Installer for Windows. There's also a great tutorial on Python.

That said, Python is mainly used for scripting behind-the-scenes. If you want a graphical user interface (GUI), you'll need a third-party GUI library for Python, and you may be better off sticking with C++ or perhaps C#.

When learning any programming language, you will have to refer back to your notes or the documentation frequently. With experience, less frequently. ;-) I don't think choosing another language will change that.

Hope that helps!
User is offlineProfile CardPM

Go to the top of the page

.Maleficus.
post 5 Oct, 2008 - 05:11 AM
Post #3


D.I.C Head

**
Joined: 7 Mar, 2008
Posts: 126



Thanked 2 times
My Contributions


QUOTE(Stutzbach @ 5 Oct, 2008 - 04:24 AM) *

That said, Python is mainly used for scripting behind-the-scenes. If you want a graphical user interface (GUI), you'll need a third-party GUI library for Python, and you may be better off sticking with C++ or perhaps C#.

Correct me if I'm wrong, but Tkinter is built into Python, and C++ has no built in GUI libraries. Yes, Python is considered by most a scripting language, but don't let that turn you off to it. You can go and make cool games with Pygame or any of the other game engines for Python, you can download NumPy and have a powerful Matlab substitute and you can create cross-platform GUI programs with PyQT (or Tkinter).

And C# is cool too.

But like Stutzbach said, learning another language won't help you if you still don't know how to properly implement it (with good OOP, readable code, etc). You might want to check out a book on OOA&D (object oriented analysis and design). I ran through Head First OOA&D at Barnes and Noble and like all of their books, it looked easy to understand and because they give examples using UML (unified modeling language) the syntax and "theory" should be familiar to your current C++ knowledge.

Either way, it's never bad to learn another language. C# is in my list, Python I'm currently working on, Java I've already learned and C++ is on its way too. Cool thing about Python though; it can easily be used to add flexibility to your C++ code. Import the Python interpreter and you can code changes very quickly and easily.
User is offlineProfile CardPM

Go to the top of the page

paddy3118
post 5 Oct, 2008 - 01:37 PM
Post #4


New D.I.C Head

*
Joined: 28 May, 2007
Posts: 4


My Contributions


QUOTE(rollin4deshi @ 5 Oct, 2008 - 04:13 AM) *

is python mainly for linux or is it usefull in windows too? im learning c++ and starting to be better then the average joe, but cant really implement the ideas of c++ without refering back to my notes , would python be easier to use and implement then the extensive library of c++?? also does python use a compiler? if not what do i use to work with it,
thanks, kc

Python tries to base itself on a focused, tight, core that is easy to learn, with a large standard library of modules to help you in a wide variety of tasks. Python works on many platforms, including Windows and Macs. Go here for more information: http://wiki.python.org/moin/BeginnersGuide .
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 09:46AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month