# Python scripts generated from Blockly blocks

We have produced many demonstration programs for our BlocklyToSmartPascal application and have in some cases used the Blockly Playground to generate Python scripts from the same blocks. For those of you learning Smart Pascal after Python it will be useful to compare the Python script linked to below with the Smart Pascal code on the same page.

**Arrays**

Insertion Sort

Linear Search

Merging Sorted Arrays

Parallel Arrays

Arithmetic Progression

Caesar Cipher

Fibonacci Sequence

Geometric Progression

**Loops**

For loop

While loop

Pascal's Triangle

Recursion and its use for calculating factorials

Rounding floats

**Validation**

Character Check

Length Check

Presence Check

Range Check

Type Check

Vowel Count