This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-04-27 22:30:12

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Python Talk

I know a little C# and C++, but I know python a little better. Let's talk about that here.

Python is a beginner's programming language. If you've had experience with LOGO, or even a little with Scratch (but that doesn't matter too much), then you'll have no trouble sliding into Python.

You can find the Python 2.5  here: http://www.python.org/download/releases/2.5/

2.6 and 3.1.2: http://www.python.org/download/

If you haven't started programming with Python yet, please follow a tradition.

Open Python GUI (IDLE)

Move your cursor to the >>> prompt, click, and type in: print "Hello World!"

Hit enter.

If the text:

Hello World!

did not appear in the window, and there is an error message, then something went wrong. Check for typos, and be sure you followed the tutorial carefully. And for some reason, this does not work for Python 2.6 if I try. Downgrade to 2.5, works much better. *wink*

But Python Programmers can talk here about...Python!

I'm currently working on a GUI; it's going smoothly. It's a word processer, like Microsoft Office Word. Only it's going to be much, much better.

Here's a tip: When creating something with Python, when you start click on file> new window. The new window is where your programming goes. I've found plenty of commands here that are used in all of these programming languages: q-basic, squeak, Logo, Scratch (ONLY a few), Microworlds (awesome), and many others. If you are familiar with one or more these, Python will be easy for you. And, keep in mind, even though Python is used for professional things, it can also be used for sheer pleasure.

My first program that I made with Python without help is available for download here: http://www.mediafire.com/?m2oyyiijcgo

Make sure you have Python downloaded or this will not work.

Double-click the icon when my program is downloaded.

You don't do anything, you just wait.

It's fun if you're bored, though.

Last edited by somelia (2010-04-27 22:30:23)

Offline

 

#2 2010-04-27 22:37:19

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Offline

 

#3 2010-04-27 22:45:32

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Python Talk

For a GUI: Download PythonCard. Open the Resource Editor.

Offline

 

#4 2010-04-27 23:07:45

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Python Talk

OH MY GOSH YOU CAME AGAIN. WHY DID I THINK SO? Sorry, its just that I hate when you do that.

I know quite a bit of Python actually, I have several books on it.  tongue

I'm creating something called Squibble, it's a free online to-do and calendar. I'm also learning some HTML and CSS. It's really fun.

You can ask me for simple things, in fact I once made a code editor using PythonCard and also a full-working calculator(decimals and everything).

Last edited by Greatdane (2010-04-27 23:12:59)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#5 2010-04-27 23:20:06

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Python Talk

I once tried to learn Phyton but I was too lazy and now I only remember how to print and define variables  big_smile

Maybe I should give it another try later. Do you guys know any good tutorials?


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#6 2010-04-27 23:49:50

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Python Talk

technoguyx wrote:

I once tried to learn Phyton but I was too lazy and now I only remember how to print and define variables  big_smile

Maybe I should give it another try later. Do you guys know any good tutorials?

Check out Headfirst Programming for Python. I use a book called HelloWorld, you can find it on manning.com.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#7 2010-04-27 23:57:36

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Python Talk

I'm learning Python. It's fun!

However, I wouldn't call it a beginners' programming language. The syntax is often easier to learn than C++ or Java, etc, but it is applied in "real life." Here is a list of stuff people do with Python: Python applications.  It is a "real" programming language. Maybe I'm crazy, but I haven't seen anywhere that it was made for beginners.

Anyway, it's cool that you made a Python topic! I was thinking of doing that myself if no one else did.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#8 2010-04-28 00:32:27

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Python Talk

W00T! Go python!

I am a python programmer, and I think that it is a great language to learn!

I am working on a python program called M30W, that is meant to be a text-based version of Scratch. For anyone who's interested, here is the link to the dev forum.

Last edited by floppy_gunk (2010-04-28 00:36:23)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#9 2010-04-28 10:53:57

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Python Talk

I do not know a word of python. I know a tiny bit of as2 otherwise I use scratch.

edit: You came back... AGAIN???

Last edited by Stickman704 (2010-04-28 10:54:17)


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#10 2010-04-28 17:11:15

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Python Talk

I've dabbled in Python a bit myself...a fun language!  I wrote a small program that sends the system time to a Scratch project so you can write time-based applications  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#11 2010-04-28 17:15:15

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Python Talk

Paddle2See wrote:

I've dabbled in Python a bit myself...a fun language!  I wrote a small program that sends the system time to a Scratch project so you can write time-based applications  smile

Sweet!


http://i48.tinypic.com/2z5pqad.png

Offline

 

#12 2010-04-28 19:11:42

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Python Talk

Greatdane wrote:

technoguyx wrote:

I once tried to learn Phyton but I was too lazy and now I only remember how to print and define variables  big_smile

Maybe I should give it another try later. Do you guys know any good tutorials?

Check out Headfirst Programming for Python. I use a book called HelloWorld, you can find it on manning.com.

Me too, that's where I started!  big_smile

Offline

 

#13 2010-04-28 19:13:01

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Python Talk

Paddle2See wrote:

I've dabbled in Python a bit myself...a fun language!  I wrote a small program that sends the system time to a Scratch project so you can write time-based applications  smile

Hey, cool! Could I have the code?

Oh, my word processer is almost done. It's called Cake-write.

Last edited by somelia (2010-04-29 19:55:08)

Offline

 

#14 2010-04-29 19:54:48

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Python Talk

Greatdane wrote:

OH MY GOSH YOU CAME AGAIN. WHY DID I THINK SO? Sorry, its just that I hate when you do that.

I know quite a bit of Python actually, I have several books on it.  tongue

I'm creating something called Squibble, it's a free online to-do and calendar. I'm also learning some HTML and CSS. It's really fun.

You can ask me for simple things, in fact I once made a code editor using PythonCard and also a full-working calculator(decimals and everything).

I need some help with my word processer. How do I get "cake-write" to appear in the window when I run it?

Offline

 

#15 2010-04-29 20:06:57

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Python Talk

My epic Python skills will be put into use in M30W.

If you know what that is, €1 for you. (If you it fn-f3 instead of shift-4, you get that sign on my comp)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#16 2010-04-29 20:28:26

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Python Talk

Code:

print "PUT SOME TEXT HERE"

Doesn't work. But this works:

Code:

print("PUT SOME TEXT HERE")

Offline

 

#17 2010-04-29 21:28:16

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Python Talk

I saw a python once. It hissed an tried to bite me. I didn't see a way to program with it, just some really scary territorial threats.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#18 2010-04-29 21:48:11

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Python Talk

ThePCKid wrote:

Code:

print "PUT SOME TEXT HERE"

Doesn't work. But this works:

Code:

print("PUT SOME TEXT HERE")

The first one works in 2.5.1.

The second one only works in 3.1.2.

Don't say things to act smart. I've seen you two times already be failed completely.  tongue


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#19 2010-04-29 21:49:27

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Python Talk

somelia wrote:

Greatdane wrote:

...

I need some help with my word processer. How do I get "cake-write" to appear in the window when I run it?

Well, I don't know that. I was looking at the documentation for the same thing, I didn't know how. Maybe you could use the system() function to run another instance? In PythonCard you may have had child windows.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#20 2010-04-29 22:52:25

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: Python Talk

What os will cake-write be for? If it's linux, I'll download it.

Last edited by urhungry (2010-04-29 22:53:12)

Offline

 

#21 2010-04-29 23:04:57

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Python Talk

Python is multi-platform, but you may need to install PythonCard as well.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#22 2010-04-29 23:21:20

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: Python Talk

Ok. Abiword is really lame, so I need a new word processer on my Linux.

Offline

 

#23 2010-04-29 23:35:35

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Python Talk

You can try OpenOffice.org!


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#24 2010-04-30 00:05:21

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: Python Talk

It won't run. It's odd.

Offline

 

#25 2010-04-30 08:54:51

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Python Talk

You can make Civilization IV mods with Python  tongue

That's probably where I first heard of Python  tongue

Offline

 

Board footer