Tuesday, 15 July 2014

Scratch to Python Cheat Sheet


Scratch
Python
Hat blocks - starting point
in idle, press f5 to run the module
Stack blocks - do stuff
first type: from turtle import *
pensize(5)
color(“blue”)
penup()
pendown()
left(15)
forward(10)
Boolean blocks - is something true or not
x > 10
C blocks - looping and asking questions
if x > 10:
    do something
while True:
    do something
x = 0
while x < 10:
    x = x + 1
    do something
Variables - store a value
x = 10

1 comment:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Data Science with Python , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Sangita Mohanty
    MaxMunus
    E-mail: sangita@maxmunus.com
    Skype id: training_maxmunus
    Ph:(0) 9738075708 / 080 - 41103383
    http://www.maxmunus.com/

    ReplyDelete

Wildern Pupils if you log onto your school email account you can leave a comment via that ID.