import numpy as np
import pandas as pd
arr=[]
while True:
grade=float(input("Enter: "))
if grade<0:
break
else:
arr.append(grade)
arr=np.array(arr)
ser=pd.Series(arr)
idx=[i for i in range(1,len(arr)+1)]
ser.index=idx
print(ser)
Get Answers For Free
Most questions answered within 1 hours.