-2
私がしようとしていることは、定義されたリストから選択セクションを表示することだと思います。現在、これは私が働いているものです:フィボナッチシーケンスの計算プログラムPython
#fibonacci sequence algorithm, user stops by either
#entering a maximum Fibonacci value not to exceed or
#a total count that the sequence of numbers must not
#exceed. Use a loop that allows User to repeat program
#as much as they wish, asking if they would like to
#repeat the program each time. Validate that User input
#is either a yes or a no and only allow User to continue
#once a correct response has been given.
import array
array.listOfFibSeq = ['0','1','1','2','3','5','8','13','21','34','55','89','144','...']
startingNumber = ''
endingNumber = ''
continueYes = ''
def getStartingNumber():
print('Please enter a valid starting number of the Fibonacci Sequence')
print(listOfFibSeq)
startingNumber = input()
def getEndingNumber():
print('Please enter a valid ending number the the Fibonacci Sequence')
print(listOfFibSeq)
endingNumber = input()
は私がこれについて移動する方法がわからないんだけど、私はフィボナッチ数列で89を通じて3(例えば)表示または何かをやろうとしていると考えていますlike:
lsitOfFibSeq.remove(<3) and listOfFibSeq.remove(>89)
また、forループを使用してFib Sequenceの範囲を表示する必要がありますか?