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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

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 1
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 1 (26.51 KiB) Viewed 10 times
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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply