Complete the code to set the viewport scale to 1:50.
viewport.Scale = [1]The viewport scale is set as a decimal representing the ratio. For 1:50 scale, use 0.02.
Complete the code to set the viewport scale to 1:100.
viewport.Scale = [1]For 1:100 scale, the decimal scale is 1 divided by 100, which is 0.01.
Fix the error in setting the viewport scale to 1:25.
viewport.Scale = [1]The correct decimal scale for 1:25 is 1 divided by 25, which is 0.04.
Fill both blanks to set the viewport scale to 1:200 and print the scale value.
viewport.Scale = [1] print('Viewport scale set to:', [2])
1:200 scale is 1 divided by 200 = 0.005. The print statement should output the current scale value.
Fill all three blanks to set the viewport scale to 1:75, check if scale is less than 0.02, and print a warning if true.
viewport.Scale = [1] if viewport.Scale [2] [3]: print('Warning: Scale is smaller than 1:50')
1:75 scale is 1/75 โ 0.0133. The condition checks if scale is less than 0.02 (1:50 scale) to warn.
