I created this program and I need it to output like this:

How can I do that?
n=int(input(""))
L = []
x=0
c=0
while x<=n-1:
Numero=int(input(""))
final="*"*Numero,Numero
L.append(final)
x=x+1
for elem in L:
print(elem)
I created this program and I need it to output like this:

How can I do that?
n=int(input(""))
L = []
x=0
c=0
while x<=n-1:
Numero=int(input(""))
final="*"*Numero,Numero
L.append(final)
x=x+1
for elem in L:
print(elem)
elem is a tuple of a string and an integer number. There are several ways to display it as a string:
print(*elem)
print("%s %d" % elem)
print("{} {}".format(*elem))
print(elem[0], elem[1])
return and implicitly returns a None.You want to unpack the arguments to the function using *. So your print statement would become:
print(*elem)
See the python tutorial for more information.
>>> e = ('****', 4)
>>>> print(e)
('****', 4)
>>> print(*e)
**** 4