Q&A CBSE12D-2016-B01D #6451
Question:
Find and write the output of the following python code:
Numbers=[9,18,27,36]
for Num in Numbers:
for N in range(1, Num%8):
print(N,"#",end= "" )
print()
Answer:
| 1# 1# 2# 1# 2# 3# |
() (1 # ) (1 #) (2 # ) (1 # ) (2 # ) (3 # ) |
() (1 # ) (1 # 2 # ) (1 # 2 # 3 # ) 1# |
