Python - Need a little help resolving syntax error on line 60 (else statement) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
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