473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

BASIC vs Python


hi

I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.

Jul 18 '05 #1
9 3800

"abisofile" <gm**@op.pl> wrote in message
news:ma**************************************@pyth on.org...

hi

I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.


Is a Ferrari similar to a horse-wagon? Yes, they both have 4 wheels.

:=)
Jul 18 '05 #2
abisofile wrote:
hi

I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.


Which BASIC did you try? Realbasic? Visual Basic?

You should check out some of these beginner's python tutorials:
http://www.honors.montana.edu/~jjc/easytut/easytut.pdf
http://www.dickbaldwin.com/tocpyth.htm
http://www.freenetpages.co.uk/hp/alan.gauld/

and then if you have any questions at all about anything, people on the
python-tutor list would be glad to help:
http://mail.python.org/mailman/listinfo/tutor

If you want to make applications with a graphical user interface (GUI),
check out wxpython, although they haven't yet released a version that
works with the new python 2.4 however: http://wxpython.org/
Jul 18 '05 #3
Doug Holton wrote:
If you want to make applications with a graphical user interface
(GUI), check out wxpython, although they haven't yet released a
version that works with the new python 2.4 however: http://wxpython.org/

Actually, Robin *has* released 2.4 binaries, he just hasn't updated the
website yet. ;) But Windows installers for 2.4 are available on
Sourceforge...

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #4
The "interpreted" nature of the existing Python language has little to do
with how it compares to other languages. Most languages, including BASIC,
are available in either flavor - interpreted or compiled. And either way,
it's still the same language. That being said, one would expect an
interpreted language (like Python!) to be a bit more approachable for
beginners. The mechanics of producing a working program are just simpler
when the language is interpreted, no matter what that language might be.

It would be quite a stretch to call Python similar to any of the very many
flavors of BASIC that exist. So - the answer is no, Python is not similar
to BASIC.

Python is, however, an excellent beginners language. In fact, a serious
programmer with several languages under his belt might actually be at a
disadvantage when learning Python. At least that is my personal experience.

So

Similar to BASIC - no!
Great language for beginning programmers - yes!

Thomas Bartkus

"abisofile" <gm**@op.pl> wrote in message
news:ma**************************************@pyth on.org...

hi

I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.

Jul 18 '05 #5
"Thomas Bartkus" <to*@dtsam.com> writes:
The "interpreted" nature of the existing Python language has little to do
with how it compares to other languages. Most languages, including BASIC,
are available in either flavor - interpreted or compiled. And either way,
it's still the same language. That being said, one would expect an
interpreted language (like Python!) to be a bit more approachable for
beginners. The mechanics of producing a working program are just simpler
when the language is interpreted, no matter what that language might be.


On what basis do you think the mechanics of producing a working
language are easier because the language is interpreted? My experience
is that interpreted C (yes, I really did work with a C interpreter -
and it was the only interpreter I've ever used that had no compilation
phase whatsoever) is no easier to deal with than compiled C. Ditto for
the various flavors of LISP I've worked with.

Now, having an interactive environment with a REPL makes learning the
language and checking things a lot easier. Those tend to be rare for
compiled languages. But interpreted languages don't necessarily have
them, as witnessed by Java and Perl. You have to get your REPL as a
third party package for those languages.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 18 '05 #6
On Thu, 2004-12-16 at 13:42, It's me wrote:
"abisofile" <gm**@op.pl> wrote in message
news:ma**************************************@pyth on.org...

hi

I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.


Is a Ferrari similar to a horse-wagon? Yes, they both have 4 wheels.


No, it is not better than a horse. The horse is more reliable and on
any given day you can count on it going further before it needs service.

Or were you comparing a Ferrari to a Mustang ... in which case, yes,
good analogy.

- Adam

Adam DePrince
Jul 18 '05 #7
"Mike Meyer" <mw*@mired.org> wrote in message
news:86************@guru.mired.org...
"Thomas Bartkus" <to*@dtsam.com> writes:
The "interpreted" nature of the existing Python language has little to do with how it compares to other languages. Most languages, including BASIC, are available in either flavor - interpreted or compiled. And either way, it's still the same language. That being said, one would expect an
interpreted language (like Python!) to be a bit more approachable for
beginners. The mechanics of producing a working program are just simpler when the language is interpreted, no matter what that language might be.
On what basis do you think the mechanics of producing a working
language are easier because the language is interpreted. <snip>


Because:
Type code
Run code.

Is easier to explain to the uninitiated than
Type Code,
compile code,
make executable,
run executable.

And - if a beginner is asking the question, there is no point getting mired
in an arcane discussion about all the in between mix and match flavors that
are constantly at play in the programming world.

As I said -
"Interpreted languages are bit more approachable for beginners"
Thomas Bartkus

Jul 18 '05 #8
Thomas Bartkus wrote:
> On what basis do you think the mechanics of producing a working
> language are easier because the language is interpreted. <snip>


Because:
Type code
Run code.


VB6 goes a step further:

Run Code
Type Code

That means that you can set a breakpoint. While the debugger stops you
can edit the sourcecode (to some extent) without stopping program
execution and let the interpreter run this new code without restarting
the program.
Essentially you can code inside the debugger. That gives you the
possibilty to fix a bug on the fly since on an exception the debugger
stops at the wrong line. Try different possibilities and see the result
immediatly in the given context.

That would be an nice feature for python (debugger), because this is
true interactive development.

Or is it already there and I missed it?

--
Greg

Jul 18 '05 #9
On Sat, 18 Dec 2004 08:41:46 +0100, Gregor Horvath
<g.*******@gmx.at> wrote:
That means that you can set a breakpoint. While the debugger stops you
can edit the sourcecode (to some extent) without stopping program
execution and let the interpreter run this new code without restarting
the program.


You can do that in C/C++ in some environments (within limits).
About 11 years ago I used a C++ IDE called ObjectCenter which
included a C/C++ interpreter and ran on my Sun workstation. It
was pretty cool for the time and worked quite happily on my
350Kloc C program...

If C can do it I'm sure it must be feasible in python!

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #10

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

Similar topics

1
by: Lucas Raab | last post by:
Can I use Python as an extension language to Visual Basic sort of like in C or C++?
19
by: Leif K-Brooks | last post by:
Has anyone ever tried implementing a simple unstructured BASIC dialect in Python? I'm getting interested in language implementation, and looking at a reasonably simple example like that could be...
3
by: Dan Stromberg | last post by:
If I wanted to write a python script that performs basic auth, gets a cookie, and then does an http POST using the cookie for authentication, what would be the best python API to write to? Does...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
6
by: Engineer | last post by:
I'm looking for a Python interpreter written in BASIC, preferably Visual Basic, and one written in VBA would be best of all. An alternative would be a Python-2-Basic compiler. Unfortunately I...
6
by: Alejandro Dubrovsky | last post by:
I see from googling around that this is a popular topic, but I haven't seen anyone saying "ah, yes, that works", so here it goes. How does one connect through a proxy which requires basic...
1
by: bruce | last post by:
hi... i have the following test python script.... i'm trying to figure out a couple of things... 1st.. how can i write the output of the "label" to an array, and then how i can select a given...
4
by: Hoop | last post by:
Hi, I have been working in getting Boost.Python running on my PC, seems to work now. I have what I believe is somewhat of basic question here. I am starting on an application that will...
14
by: MartinRinehart | last post by:
Working on parser for my language, I see that all classes (Token, Production, Statement, ...) have one thing in common. They all maintain start and stop positions in the source text. So it seems...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.