I am using python to develop a basic calculator. My goal is to create an output file of results for a series. I've tried looking for the correct command but haven't had any luck. Below is my current code. I believe all i need it to finish the "def saveSeries(x):" but I am not sure how to. I have created the input file already in the respective folder.
import os
import sys
import math
import numpy
.
.
.
.
def saveSeries(x):
def readSeries():
global x
x = []
input file = open("input.txt", "r")
for line in inputFile:
x.append(float(line))