BestPromptFinderBelow is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Write a code in Python to print the following pattern: ### Input: ### Output: for i in range(5): for j in range(i+1): print("*", end="") print("") for i in range(5, 0, -1): for j in range(i): print("*", end="") print("")
Find similar in the app →