Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Talk:Python programming language/Talk:Python vs C Plus Plus example

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

The Python program should be changed to use generators instead of passing around the answers list. But I will let someone else do this as I have wasted too much time today on Wikipedia! :-)

The external links seem to have gone, making it harder to understand the page --Henrygb 14:58, 15 Apr 2004 (UTC)

Is it the same problem that Norvig discusses here? http://www.norvig.com/java-lisp.html He has some other links which may or may not work better.

Python vs Java

[edit]

Why not have a comparison of python and java code. That will be terrific!

/* HelloWorld.java */
public class HelloWorld 
{
    public static void main(String[] args)
    {
        System.out.println("Hello World");
    }
}
# HelloWorld.py
print 'Hello World'


.. and more bigger examples, that uses Array, Lists, InputReader, URL, ...

- Sridhar