Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » Python programming language
- Shadow36821
-
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.
- pugluv4ever
-
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?
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?
- technoguyx
-
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.
maybe I should try writing a django server app, maybe a RPG of sorts.
- Harakou
-
1000+ posts
Python programming language
Best shell scripting language. All the convenience of bash with ten times the power. 

- MrFlash67
-
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
-
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
-
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
-
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
-
100+ posts
Python programming language
I know how to display text, and open a browser. That's it 

- computerawesomeness
-
100+ 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.
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
-
1000+ posts
Python programming language
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
-
1000+ posts
Python programming language
I even grab the wrong scratch blocks stillone 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…”

- CA-Remix
-
19 posts
Python programming language
Yes, yes it is. Best shell scripting language
- Shadow36821
-
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.
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
-
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.
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)
- Discussion Forums
- » Things I'm Making and Creating
-
» Python programming language