Why would the figures print on the same line? When you print the
figures, you print them with these two commands:
print((4 - i) * " " + "*" * i + "*" * i + (4 - i) * " ")
print(i1 * " " + (4 - i1) * "*" + (4 - i1) * "*")
which uses the default settings, which is to print a newline after each
print(figur1(), end=" ")
So follow what happens: first, Python runs the function figur1. That
prints some stuff, newlines and all. Then figur1() returns None. Then
you print(None, end=" ").
By the way, “figur” is misspelled, it should have an E at the end:
“figure1” not “figur1”.
Also, you’re allowed to re-use variables. You don’t have to use a
different, numbered, i in each of your for-loops. You can if you wish,
but most people just use i rather than i, i1, i2, …
Or you can use i, j, k as loop variables. Just don’t use l because that
is too easy to misread as 1.