0

Python - Need a little help resolving syntax error on line 60 (else statement)

https://code.sololearn.com/coHPAQzp3gWx/#py

26th Oct 2020, 12:47 AM
Solus
Solus - avatar
2 ответов
0
Last if else from line 57 I think if (result == 0): print("The " + str(N) + "st Fibonacci number is: " + str(untilNthFib(N))) else: result = checkSuffix(A, C) if (result == 0): print("The " + str(N) + "nd Fibonacci number is: " + str(untilNthFib(N))) else: result = checkSuffix(A, D) if (result == 0): print("The " + str(N) + "rd Fibonacci number is: " + str(untilNthFib(N)) ) else: print("The " + str(N) + "th Fibonacci number is: " + str(untilNthFib(N)) ) Change it
26th Oct 2020, 12:58 AM
Ayush Kumar
Ayush Kumar - avatar
0
Ah, closing brackets. Thanks.
26th Oct 2020, 1:08 AM
Solus
Solus - avatar