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))

26th Jan 2022, 3:03 PM
NIKHIL
3 Answers
+ 3
The complete string needs to be inside the print(), not only the str(variable)...
26th Jan 2022, 3:06 PM
Lisa
Lisa - avatar
+ 1
Syntax error print(......) #you forgot closing parentheses ')'
26th Jan 2022, 3:15 PM
saurabh
saurabh - avatar
0
Thnku very much
27th Jan 2022, 10:04 AM
NIKHIL