Discuss Scratch

Shadow36821
Scratcher
100+ posts

Python programming language

Discuss the programming language Python. You can also talk about Pygame because it runs on Python. Feel free to ask questions, share code and ideas.
Shadow36821
Scratcher
100+ posts

Python programming language

bump
Shadow36821
Scratcher
100+ posts

Python programming language

bump
Shadow36821
Scratcher
100+ posts

Python programming language

bump
pugluv4ever
Scratcher
100+ posts

Python programming language

Hi, I'm a python beginner, but learning!

I feel like python is a good 1st “real” programming language to learn b/c it is very simple. Also the parallels to scratch are very obvious (for example lists=lists, the “print()” function= the “say” block, etc.)

However, one problem I've had transitioning to a text programming language is I generate a lot of errors with simple typos or where I type a command slightly wrong (ie I always forgot the : after the if block and use front slashes instead of backslashes).

What about you?
SeptimusHeap
Scratcher
100+ posts

Python programming language

I write reddit bots in Python.
Semblance
New Scratcher
58 posts

Python programming language

Such a waste of talent.
technoguyx
Scratcher
500+ posts

Python programming language

I know the basics but never really used it

maybe I should try writing a django server app, maybe a RPG of sorts.
Harakou
Scratcher
1000+ posts

Python programming language

Best shell scripting language. All the convenience of bash with ten times the power.
MrFlash67
Scratcher
500+ posts

Python programming language

I'm making a (very short) text-based adventure game in it and saving/loading is kinda hard! I have an idea, though.
Harakou
Scratcher
1000+ posts

Python programming language

I'm not too familiar with file I/O in Python, but it shouldn't be that hard to just read/write your save data from a file, should it? You could even use a simple text file if you didn't feel comfortable writing plain bytes.
Shadow36821
Scratcher
100+ posts

Python programming language

I made a game in scratch called Magnetix, and when I make Magnetix 2, It will be in python.
Znapi
Scratcher
500+ posts

Python programming language

If you have Python, then you need to get Blender. It is a free 3D modeling tool, and you can create 3D games with it with Python. It is really cool.
computerawesomeness
Scratcher
100+ posts

Python programming language

I know how to display text, and open a browser. That's it
computerawesomeness
Scratcher
100+ posts

Python programming language

MrFlash67 wrote:

I'm making a (very short) text-based adventure game in it and saving/loading is kinda hard! I have an idea, though.

All I know is:
file_to_open = open("file.txt", "r")
file_to_write_to = open("file.txt", "w")
file_to_write("Hello, world!")
file_to_open.close()
file_to_write.close()
#####NOT TESTED###
blob8108
Scratcher
1000+ posts

Python programming language

pugluv4ever wrote:

one problem I've had transitioning to a text programming language is I generate a lot of errors with simple typos

Get used to it: I still make typos like that after several years of Python coding.

I once asked a professional, bearded programmer, “Do you still make these kinds of mistakes?”

“Oh yes…”
mythbusteranimator
Scratcher
1000+ posts

Python programming language

blob8108 wrote:

pugluv4ever wrote:

one problem I've had transitioning to a text programming language is I generate a lot of errors with simple typos

Get used to it: I still make typos like that after several years of Python coding.

I once asked a professional, bearded programmer, “Do you still make these kinds of mistakes?”

“Oh yes…”
I even grab the wrong scratch blocks still
CA-Remix
New Scratcher
19 posts

Python programming language

Harakou wrote:

Best shell scripting language
Yes, yes it is.
Shadow36821
Scratcher
100+ posts

Python programming language

I am making a 3d zombie survival game called swarm in python.

also does anyone know if pygame is working for me? Everytime I add a script like “import pygame” it gives me errors with the note Invalid syntax. It shows a red line on the first > in the script.
alebovic
Scratcher
43 posts

Python programming language

print ‘oh why sure I use python’
import turtle
t=turtle.pen()
t.forward(90).
I think scratch really helped me understand some turtle concepts like if, else, and, or, and such so.

Last edited by alebovic (June 29, 2014 11:11:22)

Powered by DjangoBB