Computer Science - Text-Based Programming - Python - Introduction to Python syntax - Blocks to Text: The Next Level
Match Scratch blocks to their Python equivalents. Pairs: [say "Hello!"] ↔ print("Hello!"), [set x to 5] ↔ x = 5, [if x > 3 then] ↔ if x > 3:, [repeat 10] ↔ for i in range(10):, [forever] ↔ while True:, [ask "name?" and wait] ↔ name = input("name?"), [x + y] ↔ x + y, [join "Hi " name] ↔ "Hi " + name.