Cutebot Variables and Functions
Вставка
- Опубліковано 27 сер 2024
- tinyurl.com/7b...
The functions can pack a lot of code instructions in one block so you can "call" that block and all the code will run. You can collapse this string of code into one block to save space on your workspace. Variables are made up containers which hold something like wheel speed of 50 so when you insert that variable in the code, 50 is placed as the percent amount; so your wheel speed is one half of full speed.
Great explanation for beginners
Functions are also a good way of breaking a program up into smaller chunks of code, this can make the code easier to read & understand - particularly by someone who didn't write the code !