Geometric number sequence

In this Python code example, the geometric number sequence is output after a start value and a ratio value are entered.

def geometricSequence(a, ratio, n):
    for i in range(0, n):
        current = a * pow(ratio, i)
        print(current, end=" ")

a = int(input("Please enter starting value: "))
ratio = int(input("Please enter ratio value: "))
n = int(input("How many values should be entered: "))
geometricSequence(a, ratio, n)
Output
Please enter starting value: 2
Please enter ratio value: 3
How many values should be entered: 8
2 6 18 54 162 486 1458 4374