print("      This is the test for floyds formation     ")
def flyod(n):
    a=1
    for i in range(1,n+1):
        for j in range(i):
            print(a,end=" ")
            a+=1
        print()   
    print()
n=input("Enter the number of rows baby : ")
flyod(n)
Getting syntax error on end=" " receiving "There is an error in your program: invalid syntax"
 
    