Yahoo Web Search

  1. h = int (input ("Height: ")) z = -17 for r in range ( 1 , h+ 1 ):     print ((h-r)*"-" + "123456789"[:r] + "0"*z + "987654321"[max(0,10-r):])     z += 2

    3 Answers · Computers & Internet · 09/10/2020

  1. Try asking your question on Yahoo Answers