473,836 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newbie to python --- why should i learn !

Hi,

i was reading/learning some hello world program in python.
I think its very simillar to Java/C++/C#. What's different (except
syntax) ?

what can i do easily with python which is not easy in c++/java !?

Tnx,
Raxit
www.mykavita.com
Jun 27 '08
16 1889
On Thu, 08 May 2008 15:49:01 +0200, pistacchio wrote:
Marc 'BlackJack' Rintsch ha scritto:
>On Thu, 08 May 2008 04:17:01 -0700, s0suk3 wrote:
>>Are you a newbie to Python, or to programming in general? I'll assume
you are a newbie to programming in general because of that last
question you asked. Things in Python are easier than in almost any
other programming language. Here are three Hello World programs:

Counterexample s for quite short "greetings" in other programming languages:

(Free)BASIC: :

Print "Hello World!"

freebasic is another language i'd point out to a newbie, even if it is
not as multiplatform as python if. it has a decent community and a large
amount of libraries. it doesn't let you explore functional or, worse,
object oriented programming nor you can write server side programs with
it.
OOP support is under development and why can't you write "server side
programs" in it? CGI is possible.
The others are examples of easy "hello world" languages, but, passed
that, i think they don't have the same capabilities of python on terms
of support, kind of programs you can write and even overall complexity
(haskell forces you to functional programming, io is really a minor
language, ocalm forces you to di OOP and, if writing hello world is
simple, on the other hand ir may have lines of code that read like:

| [] -[]
Okay, Haskell's pure functional approach feels somewhat "weird".

Io is a minor language but a quite nice one IMHO. Simple syntax and
relatively simple semantics but very powerful.

OCaml doesn't enforce OOP. It's some kind of "mirror" of Python. Python
is an OOP language with support for functional programming, and OCaml is a
functional language with support for OOP.

The biggest pro for Python among the easy and clear syntax languages is
the standard library and the amount of third party modules.

Ciao,
Marc 'BlackJack' Rintsch
Jun 27 '08 #11
Ra***@MyKavita. com wrote:
Hi,

i was reading/learning some hello world program in python.
I think its very simillar to Java/C++/C#. What's different (except
syntax) ?

what can i do easily with python which is not easy in c++/java !?
With Python, you can program with a smile on your face.

(Truly, when I found Python, programming became fun again.)

Gary Herron
Tnx,
Raxit
www.mykavita.com
--
http://mail.python.org/mailman/listinfo/python-list
Jun 27 '08 #12
pistacchio <pi********@gma il.comwrites:
ocalm forces you to di OOP
Ocaml *allows* you to do OOP. It's very much an optional feature of
the language, just like for Python.

--
Arnaud
Jun 27 '08 #13
pistacchio a écrit :
(snip)
Technically speaking, it (Python) is not, for example, strongly
typed,
You're confusing "strong" typing with static typing. Somewhat orthogonal
issues.
Jun 27 '08 #14
On May 8, 7:25*am, "Ra...@MyKavita .com" <raxitsheth2... @gmail.com>
wrote:
Hi,

i was reading/learning some hello world program in python.
I think its very simillar to Java/C++/C#. What's different (except
syntax) ?
All the languages have similar "power", in a theoretical sense. If
you can solve a problem with one, most of the time you'll be able to
solve it with the other. So we could say that the languages are
"equal".

However, in practice, the syntax matters a lot. For example, they
will influence on the maintainability and the performance of your
application.
>
what can i do easily with python which is not easy in c++/java !?
Pretty much everything. Python syntax is minimalist, so it requires
much less code. There are many examples in Wikipedia, for example:

http://en.wikipedia.org/wiki/User_da...e_.28Python.29
http://pt.wikipedia.org/wiki/Radix_s...B3digo_em_Java
http://en.wikipedia.org/wiki/Observer_pattern#Python

etc.
>
Tnx,
Raxitwww.mykavi ta.com
Jun 27 '08 #15
In article <12************ *************** *******@v26g200 0prm.googlegrou ps.com>,
maxinbjohn <ma********@gma il.comwrote:
>Hi Raxit,

One of the the tempting features of Python is that it is fun to code
in Python. If you are really trying to learn python, you should read
Adventures with Neko (http://gnuvision.com/books/pybook/) . It is an
introductory book on Python programming for school children by Mr.
Pramode CE.

It is fun for children (when I tried it, me too liked it) to do
programming with Neko, the cat. I am sure that it will be a fun filled
learning experience for you.
Jun 27 '08 #16
In article <ma************ *************** ***********@pyt hon.org>,
Gary Herron <gh*****@island training.comwro te:
>
With Python, you can program with a smile on your face.
+1 QOTW
>(Truly, when I found Python, programming became fun again.)
"Again"? Looking back over the years, after I learned Python I realized
that I never really had enjoyed programming before.
--
Aahz (aa**@pythoncra ft.com) <* http://www.pythoncraft.com/

Help a hearing-impaired person: http://rule6.info/hearing.html
Jun 27 '08 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1726
by: karokat | last post by:
Hi, I want to learn how to program and python seems to be the most intuitive language according to various internet sources - but I'm not sure if it's best for newbies... please advise.. Anyway, my first project I would like to make is a simple proggie - a simple note 'library', with basic formattable text, to store, edit and access my notes. Express Notes is the prog I currently use but there's things in it I want to customise to my personal...
4
1460
by: Grayham | last post by:
Hi all I am new to this group so 'Hello All' I have a PC which is running linux and in it have installed a digital satellite card. I would like to write some software to access the card, tune it and bring back video. Basically a home brew DVB-s application. Being a non/new programmer (apart from some basic too many years ago) I decided to teach my self Python as from what i have read it's an easy and
0
924
by: Sells, Fred | last post by:
write working programs
3
952
by: andrew.smith.cpp | last post by:
I have Heard About "Python" its a OOD Language. i have to Learn it where from i should start it. i have python compiler at linux Platform. anyone can suggest me about it. Thanks In advance.
0
807
by: Sells, Fred | last post by:
get a python-aware editor. I vary between emacs and Eclipse, depending on my mood and the size of the project.
7
1519
by: idiolect | last post by:
Hi all - Sorry to plague you with another newbie question from a lurker. Hopefully, this will be simple. I have a list full of RGB pixel values read from an image. I want to test each RGB band value per pixel, and set it to something else if it meets or falls below a certain threshold - i.e., a Red value of 0 would be changed to 50. I've built my list by using a Python Image Library statement akin to the following:
0
1725
by: Edwin.Madari | last post by:
-----Original Message----- statement prepared first and executed many times with exectemany - db API http://www.python.org/dev/peps/pep-0249/ inline statemets can be exeucuted only. hope that helps Edwin
10
1416
by: Mladen Gogala | last post by:
I am a Python newbie who decided to see what that Python fuss is all about. Quite frankly, I am a bit perplexed. After having had few months of experience with Perl (started in 1994 with Perl v4, and doing it ever since) , here is what perplexes me: perl -e '@a=(1,2,3); map { $_*=2 } @a; map { print "$_\n"; } @a;' The equivalent in Python looks like this: Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
0
10845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10549
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10592
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9376
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5828
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4456
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.