0

How can I make a program that can print in the bracket[ ]. Pls answer this..........

a=1 b=[ ] print (a,b) #it prints 1,[ ] BUT I want [ 1].....

14th Sep 2018, 8:17 PM
aman singh
aman singh - avatar
2 Answers
+ 5
a = 1 b = [] b.append(a) print(a, b)
14th Sep 2018, 8:49 PM
Eduardo Petry
Eduardo Petry - avatar
0
b = "[ ]" ?
14th Sep 2018, 10:55 PM
Markus Kaleton
Markus Kaleton - avatar