Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » Python Programing
- ThEStAr-
-
24 posts
Python Programing
Hi,
I was just wondering if anyone in the scratch community was learning Python. I just started to learn it and its pretty fun and is very different from Scratch but they are both programing languages. If anyone is learning Python, I was wondering If you would like to share things we have learned and learn from each other. I have learned while loops, for loops, random randint and I am working on strings.
Thanks
ThEStAr-
I was just wondering if anyone in the scratch community was learning Python. I just started to learn it and its pretty fun and is very different from Scratch but they are both programing languages. If anyone is learning Python, I was wondering If you would like to share things we have learned and learn from each other. I have learned while loops, for loops, random randint and I am working on strings.
Thanks

ThEStAr-
Last edited by ThEStAr- (April 17, 2015 23:25:20)
- LimitedImagination
-
100+ posts
Python Programing
“but they are both programing languages” I think that's a bit obvious, really 
I've just started learning it using Codecademy.
Just wondering, can you make viruses in Python? I don't want to do anything really bad, just change my friend's desktop background to my nose.

I've just started learning it using Codecademy.
Just wondering, can you make viruses in Python? I don't want to do anything really bad, just change my friend's desktop background to my nose.
- Rumanti
-
1000+ posts
Python Programing
I have learned Python for a few some months. I'm learning from this awesome course, Programming For Everybody, which teaches you Python. (btw, everyone = EVERYONE. No algebra whatever needed) It also includes and optional-yet-very-useful-in-and-outside-the-course Open Source and LEGALLY FREE Python textbook. I didn't remember much from the course, but it includes good (not-boring) videos, discussion forums, installation tutorial, more tutorials, and quizzes. The textbook teaches you basic stuff (print etc), randomness, strings, numbers, types of data (and converting them) lists, and awesomely, files.
You can also learn Python from Learn Python The Hard Way.
You can also learn Python from Learn Python The Hard Way.
I don't really know about changing computer properties and that stuff, but you can use Python to change/make files. I have an idea: Maybe you can make a Python program to backup the data file and then change the real data file to something epic. Just wondering, can you make viruses in Python? I don't want to do anything really bad, just change my friend's desktop background to my nose.
Last edited by Rumanti (April 19, 2015 13:11:11)
- ThEStAr-
-
24 posts
Python Programing
Yes, I'm using Learn Python The Hard Way book to learn.
Last edited by ThEStAr- (May 1, 2015 21:42:35)
- IronBit_Studios
-
1000+ posts
Python Programing
Yeah, I'm expanding on it via Hello World v2, Codecademy, stackoverflow, and my brain.
- MrSherlockHolmes
-
500+ posts
Python Programing
I think I'm at about the same stage as you, if you want you could help me out with my programming language 

import time
vars = {}
punc = ["%", "(", ")", "_", "[", "]", "{", "}", "\'", "|", "\\"]
ent = """
x = "wow!? Any punctuation is possible :)"
print x
"""
lines = ent[1:len(ent)-1].split("\n")
for line in lines:
words = [""]
extra = []
length = []
for i in line:
if i == " ":
words.append("")
elif i in punc:
extra.append(i)
else:
words[len(words)-1] = words[len(words)-1] + i
for word in words:
length.append(len(word))
if words[1] == "=":
if words[2] in vars:
vars[words[0]] = vars[words[2]]
elif words[2][0] == "\"":
vars[words[0]] = line[(length[0] + length[1] + 3):len(line)-1]
else:
vars[words[0]] = words[2]
elif words[0] == "print":
if words[1] in vars:
print (vars[words[1]])
elif words[1][0] == "\"":
print (line[7:len(line)-1])
else:
print (line[6:len(line)])
else:
print ("Error: Command not recognised.")
time.sleep(2)
- ThEStAr-
-
24 posts
Python Programing
I have not gotten that far yet. I am trying to learn from a book so it might take a bit of time. I think I'm at about the same stage as you, if you want you could help me out with my programming languageimport time
vars = {}
punc = ["%", "(", ")", "_", "[", "]", "{", "}", "\'", "|", "\\"]
ent = """
x = "wow!? Any punctuation is possible :)"
print x
"""
lines = ent[1:len(ent)-1].split("\n")
for line in lines:
words = [""]
extra = []
length = []
for i in line:
if i == " ":
words.append("")
elif i in punc:
extra.append(i)
else:
words[len(words)-1] = words[len(words)-1] + i
for word in words:
length.append(len(word))
if words[1] == "=":
if words[2] in vars:
vars[words[0]] = vars[words[2]]
elif words[2][0] == "\"":
vars[words[0]] = line[(length[0] + length[1] + 3):len(line)-1]
else:
vars[words[0]] = words[2]
elif words[0] == "print":
if words[1] in vars:
print (vars[words[1]])
elif words[1][0] == "\"":
print (line[7:len(line)-1])
else:
print (line[6:len(line)])
else:
print ("Error: Command not recognised.")
time.sleep(2)
- Rumanti
-
1000+ posts
Python Programing
How? If it is true, you can say “JavaScript is basically Python, but with rather different commands.” It's not. Scratch is basically python, but with blocks.
- DrummerCat
-
8 posts
Python Programing
exec("print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')")
- DrummerCat
-
8 posts
Python Programing
I meant: exec("print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')")
exec("print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')")
or
print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')
It's not working!
Last edited by DrummerCat (July 13, 2015 18:08:03)
- navysmeagol_175
-
100+ posts
Python Programing
what version are you usingI meant: exec("print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')")
exec("print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')")
or
print(chr((1<<6)+(2<<2))+'!bdcldreofwg hoiljlke')
It's not working!
- TheMinecraftX1
-
16 posts
Python Programing
I started learning Python on Christmas 2014 and now I am looking at the source code.
- mariokartman6
-
28 posts
Python Programing
I don't want to do anything really bad, just change my friend's desktop background to my nose.
XD
- jossel1
-
100+ posts
Python Programing
You learned how ???
I'm looking for a site to learn quite easily
I'm looking for a site to learn quite easily
- stevenwatson011
-
100+ posts
Python Programing
I had taken the classes to learn python. It's very easy. It takes three months to grasp the whole code.
- __init__
-
1000+ posts
Python Programing
Yes, of course. Everything has threads. does python have threads?
Even Scratch has threads. (kinda)
- navysmeagol_175
-
100+ posts
Python Programing
how do you use python threads?Yes, of course. Everything has threads. does python have threads?
Even Scratch has threads. (kinda)
Last edited by navysmeagol_175 (Aug. 12, 2015 19:16:34)
- Discussion Forums
- » Things I'm Making and Creating
-
» Python Programing