0

Python arguments 32.2

Can anyone tell me why line 2 is giving me invalid syntax? def printBill(text): printBill(input()) print("======") print(text) print("======")

17th Jan 2022, 4:16 PM
NW1121
2 Antworten
+ 3
I think you're getting an indentation error rather than a syntax error. Try calling printBill() outside function. def func_name(): #some code func_name()
17th Jan 2022, 4:23 PM
Simba
Simba - avatar
+ 1
Thank you that worked!
18th Jan 2022, 3:43 AM
NW1121