-2
내가 뭘하려는 건지 정의 된 목록에서 선택 섹션을 표시하는 것 같아요. 현재이 내가 함께 일하고 것입니다 :fibonacci 시퀀스 파이썬 계산 프로그램
#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)
또는 F 루프 시퀀스를 for 루프와 함께 표시해야합니까?