Algorithms 2 / Programming 1 a) What would be the output of the following piece of code? (4 marks) X=12 L=[] for i in ra
Posted: Thu Jul 14, 2022 2:06 pm
Algorithms 2 / Programming 1 a) What would be the output of the following piece of code? (4 marks) X=12 L=[] for i in range( X) : if X%(i+1)==0 L.append(i) print (L) b) What are the three main types of operators? (3 marks) c) Sketch a flowchart for the following task: Ask the user to input a number as long as the number is smaller than Threshold =10 (5 marks)