0
why is it not running?? plz help me
def students(t,p,a): if p!=10: print(str(t) + "are total students" elif t!=20: print(str(a)) + "are absent students" elif t<30: print(str(p)) + " present students" print(students(25,20,5))
3 Answers
+ 3
The complete string needs to be inside the print(), not only the str(variable)...
+ 1
Syntax error
print(......) #you forgot closing parentheses ')'
0
Thnku very much