Code in python
Hello I want a program to read only the price of each line in a
txt file in python. The price is present right after the 2nd comma
within the txt file. The output that I want is also printed at the
bottom.
Inside the txt file:
2019-08-01 00:08:39,BTC/USD,10128.08
2019-08-01 00:08:21,BTC/USD,10117.54
2019-08-01 00:08:20,BTC/USD,10120.51
2019-08-01 00:08:19,BTC/USD,10118.13
2019-08-01 00:08:18,BTC/USD,10120.74
Python file output:
Price 1: 10128.08
Price 2: 10117.54
Price 3: 10120.51
Price 4: 10118.13
Price 5: 10120.74