Skip to content
Learn to Code — Python, Java, C, SQL & Web

Robot Challenges

Drive a robot with real VEXcode VR Python. Sensors, mazes, colour tiles, a pen and a magnet.

  • python
  • 49 Lessons
  • Runs in your browser

On this device: 0 of 49 lessons completed

Start the course

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with translated notes paired with English.

Lessons in this course

49 of 49 lessons shown

  1. Lesson 1: Drive forward Meet the robot · Your first program Lesson 1 · 2 required tasks · ★
  2. Lesson 2: Turn Turning · Drive, turn, drive Lesson 2 · 2 required tasks · ★
  3. Lesson 3: Loops and the pen Draw with the pen · A square with a loop Lesson 3 · 2 required tasks · ★
  4. Lesson 4: Plan a route Plan a route · Count the squares Lesson 4 · 2 required tasks · ★★
  5. Lesson 5: Functions Your own commands · Make a command, use it twice Lesson 5 · 2 required tasks · ★★
  6. Lesson 6: The distance sensor The distance sensor · Drive until the wall is close Lesson 6 · 2 required tasks · ★★
  7. Lesson 7: Decide with if Decide with if · Which way is open? Lesson 7 · 2 required tasks · ★★★
  8. Lesson 8: Bumpers Bumpers · Bump and back up Lesson 8 · 2 required tasks · ★★★
  9. Lesson 9: Colour tiles Colours on the floor · Stop on a colour Lesson 9 · 2 required tasks · ★★★
  10. Lesson 10: Final challenges Final challenges · Look, then move Lesson 10 · 2 required tasks · ★★★
  11. Lesson 11: Escape the cave Lost in the cave · Is the way open? · The right-hand rule Lesson 11 · 2 required tasks · ★★★
  12. Lesson 12: Follow the tape Robots in a factory · Black or not black? · How the robot finds a corner Lesson 12 · 2 required tasks · ★★★
  13. Lesson 13: Read the colours Colours carry messages · Remember what you saw Lesson 13 · 2 required tasks · ★★★
  14. Lesson 14: Rescue mission Search and rescue · Lane by lane · Where am I? Lesson 14 · 2 required tasks · ★★★★
  15. Lesson 15: Obstacle course Boxes in the way · A detour in three moves · Which way is the robot facing? Lesson 15 · 2 required tasks · ★★★★
  16. Lesson 16: Count on patrol The night guard · Counting with a variable · Why drive off the tile? Lesson 16 · 2 required tasks · ★★★
  17. Lesson 17: Lawn mower Cut the grass · The pattern · Swap two values Lesson 17 · 2 required tasks · ★★★★
  18. Lesson 18: Measure the room A robot with a tape measure · The sensor does not see the robot · From mm² to m² Lesson 18 · 2 required tasks · ★★★
  19. Lesson 19: Spiral art Art with a robot · How the square spiral grows · Colours in turn Lesson 19 · 2 required tasks · ★★★★
  20. Lesson 20: Warehouse mission The warehouse mission · The plan · A function that gives back a number Lesson 20 · 2 required tasks · ★★★★★
  21. Lesson 21: Find the way home Remember the way · Out and back · A list in Python Lesson 21 · 2 required tasks · ★★★★★
  22. Lesson 22: GPS navigation Where am I? · The maths · Try the maths Lesson 22 · 2 required tasks · ★★★★★
  23. Lesson 23: Disk mover Pick and place · The magnet commands · A loop with two ways out Lesson 23 · 2 required tasks · ★★★★
  24. Lesson 24: Sorting robot Sort the metal · Which way? · Two colours in one condition Lesson 24 · 2 required tasks · ★★★★★
  25. Lesson 25: Find the door Look before you move · Position and heading · max and index in Python Lesson 25 · 2 required tasks · ★★★★
  26. Lesson 26: Search the shelf Look one by one · Two ways to search · A search in a list Lesson 26 · 2 required tasks · ★★★★
  27. Lesson 27: Fractal tree A tree made of trees · How the calls grow · A smaller example Lesson 27 · 2 required tasks · ★★★★★
  28. Lesson 28: Binary on the floor Bits on the floor · Place values Lesson 28 · 2 required tasks · ★★★★
  29. Lesson 29: Sort the bays Put them in order · One pass · Swap two values Lesson 29 · 2 required tasks · ★★★★★
  30. Lesson 30: Car park map A map in a list · Read a 2D list Lesson 30 · 2 required tasks · ★★★★★
  31. Lesson 31: Bus stops Count each stop once · What the eye sees · A flag Lesson 31 · 2 required tasks · ★★★★★
  32. Lesson 32: Look before you go A function that answers · Return a value Lesson 32 · 2 required tasks · ★★★★
  33. Lesson 33: Speed test How fast is the robot? · Speed, distance, time Lesson 33 · 2 required tasks · ★★★★
  34. Lesson 34: Find the errors Be the tester · Where is the error? Lesson 34 · 2 required tasks · ★★★★
  35. Lesson 35: Robot commands Text into actions · Cut up one command Lesson 35 · 2 required tasks · ★★★★
  36. Lesson 36: Retrace the route Remember the way · The way back Lesson 36 · 2 required tasks · ★★★★
  37. Lesson 37: Safe moves Check before you move · Test data for "1 to 500" Lesson 37 · 2 required tasks · ★★★★
  38. Lesson 38: Parameters One procedure, many shapes · The turn at each corner Lesson 38 · 2 required tasks · ★★★
  39. Lesson 39: Survey the wall Measure, store, then work it out · Highest, lowest and total in one loop Lesson 39 · 2 required tasks · ★★★★
  40. Lesson 40: Logic on patrol Two sensors, one decision · Truth table Lesson 40 · 2 required tasks · ★★★★
  41. Lesson 41: Break it down One big job, many small jobs · The structure diagram Lesson 41 · 2 required tasks · ★★★
  42. Lesson 42: Collect the points Stop at the marker · Map 1, step by step Lesson 42 · 2 required tasks · ★★★
  43. Lesson 43: Think in squares Keep what matters · Squares and millimetres Lesson 43 · 2 required tasks · ★★★★
  44. Lesson 44: Follow the flowchart Read the flowchart, write the code · Two kinds of loop Lesson 44 · 2 required tasks · ★★★
  45. Lesson 45: Local or global Where can a variable be used? · Which one to use? Lesson 45 · 2 required tasks · ★★★★
  46. Lesson 46: Message on the floor Text is numbers · Read a letter Lesson 46 · 2 required tasks · ★★★★
  47. Lesson 47: First in, first out Wait in line · Map 2, step by step Lesson 47 · 2 required tasks · ★★★★
  48. Lesson 48: Count every colour Two lists, one index · Why use lists? Lesson 48 · 2 required tasks · ★★★
  49. Lesson 49: Follow the links The route is in the pointers · Insert without moving Lesson 49 · 2 required tasks · ★★★★

Log in or create account

IGCSE, A-Level & AP