Search code examples
pythonprintingdiagram

Need help quickly, in printing horizontally


  • I want a diagram too look like this essentially as the output

Solution

  • use

    
    star_progress = '*'
    def progress():
        for p in range(4): # you added one extra
            print(star_progress, end="\t\t\t", sep="")
       
    # you cant call any function you write without defining it first  
            
    print("Progress",end = '  ')
    print("Trailing",end = '  ')
    print("Retriever",end = '  ')
    print("Excluded")
    progress()