Question 7
Which of the following code snippets print the first 100 powers of 3, one on each line. The line should have the value of . The output has 100 lines in total. The first five lines look like this:
Which of the following code snippets print the first 100 powers of 3, one on each line. The line should have the value of . The output has 100 lines in total. The first five lines look like this:




Correct answer

Question 7 of 68 in the IIT Madras BS Programming in Python (Python) End Term paper sat on 10 May 2026, in the January 2026 term (Programming In Python 06 May 26). It carries 4 marks.