Complete the code to describe what G-code is.
G-code is a [1] language used to control machines like 3D printers.
G-code is a programming language that tells machines how to move and operate.
Complete the sentence about what G-code controls.
G-code controls the [1] of the 3D printer's parts.
G-code tells the printer how to move its parts to build objects.
Fix the error in the G-code command example.
A common G-code command is 'G[1] X10 Y20' which moves the printer head.
'G1 X10 Y20' is the command to move the printer head linearly to position X10 Y20.
Fill both blanks to complete the G-code command that sets the print speed and temperature.
M[1] S60 ; Set print speed M[2] S200 ; Set nozzle temperature
M220 sets the print speed factor (feedrate multiplier) to 60%, and M104 sets the nozzle temperature to 200°C.
Fill all three blanks to create a dictionary comprehension that maps G-code commands to their descriptions if the command starts with 'G'.
gcode_dict = [1]: [2] for [3] in commands if [3].startswith('G')}
This comprehension creates a dictionary where the key is the command (cmd) and the value is its description, for all commands starting with 'G'.