'Print() statement in Python3 resets when inputting a variable--Visual Studio Community Edition

So, I am learning Python3 and have made use of Visual Studio Community Edition for other languages, such as C# and C. In these, you can do a "WriteLine(my_variable)" and it will autocomplete "my_variable", saving you time.

However, in Visual Studio for Python3, if I try to autocomplete the variable inside a print() statement, it replaces the print statement with the variable, or the variable simply does not show up--how do I fix this?

Examples:

zero_to_seven = range(8)

print(zero_to_seven)

#This should be the output.
zero_to_seven = range(8)

#But this is what happens:

zero_to_seven #(print statement is deleted).

Appreciate any help you can give as I dunno what to search to fix this...

Thanks again!

RäDev

Tried to autocomplete a variable name in a print statement; the autocomplete doesn't always happen, but when it does, overwrites the print function. How do I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source