Thank you very much for the quick awnser and for your code. I'll check it!
Meanwhile I've found the error, it was a parenthesis missing in line 1.
Here is the script
Meanwhile I've found the error, it was a parenthesis missing in line 1.
Here is the script
n, i= 1, int(input("Enter a number:")) while n<=12: if n!=12: print(i, end=", ") else: print(i) i*=3 n+=1It works !
Output:Enter a number:1
1, 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147