Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a pattern in python in one line

print("
".join(str(ele) for ele in [" ".join(str(e) for e in ["*" for _ in range(i+1)]) for i in range(10)]))
 
PREVIOUS NEXT
Tagged: #pattern #python #line
ADD COMMENT
Topic
Name
1+9 =