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("======")
2 ответов
+ 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()
+ 1
Thank you that worked!