0

Can anyone help me out with this please?

Tried solving a question with the def function and it works quite well without using the input() function but once i do put an input() function it doesn't work. https://code.sololearn.com/cXhAAPigx4RU/?ref=app

6th Oct 2022, 1:48 PM
Ajieh Daniel Chidi
Ajieh Daniel Chidi - avatar
5 ответов
+ 1
Incorrect matching braces in function call.. Check again. edit: print_pure_function(int(input("what principal? ") ), int(input("what year? ")))
6th Oct 2022, 2:02 PM
Jayakrishna 🇮🇳
+ 1
print_pure_function(int(input("what principal? ")), int(input("what year? ")))
6th Oct 2022, 2:45 PM
Solo
Solo - avatar
+ 1
check your parenthesis pairsing(brackets)in line 7
8th Oct 2022, 11:43 AM
Omanshu
Omanshu - avatar
0
Hello Daniel The function cannot accept input because it works like the print function and therefore will print what you ask it to display. And since that was not in its parameters, it shows an error but If you want the user input, you can ask the user to do so as in the code below. https://www.sololearn.com/compiler-playground/cX3xGChFU2CK
6th Oct 2022, 2:20 PM
MUZAKI TRACY
MUZAKI TRACY - avatar
0
Thanks alot for the replies guys, i really appreciate.
8th Oct 2022, 8:04 AM
Ajieh Daniel Chidi
Ajieh Daniel Chidi - avatar