B01D-2016D – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12D-2016-B01D #PYTHON#6451    siteicon   siteicon  

Problem Statement - B01D-2016D

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()

Solution

TC++ #6451

1#
1#
2#
1#
2#
3#
()
(1 # )
(1 #)
(2 # )
(1 # )
(2 # )
(3 # )
()
(1 # )
(1 # 2 # )
(1 # 2 # 3 # )


1#
1#2#
1#2#3#


Share

CSKC| Created: 12-Jan-2019 | Updated: 12-Jan-2019|CBSE12D-2016









Back