import sys
gallons = int(sys.argv[1])
litre = gallons * 3.785411784
litre = round(litre,3)
print(gallons, "gallon(US) is equal to", litre, "litre")
For example if I were to run this code in windows cmd I would type:
python "C:\Users\public\Desktop\assign2-6.py" 15
It would take 15 as the input and convert 15 into litre and return the output. How would I run this code in Visual Studio Code/Pycharm so I would not have to manually type the file location?