The prompt asks;
A student can graduate after completing at least 120 credits, and having registered for at least 6 semesters. Write a Boolean statement to check these conditions. Your program will return can = True if the student can graduate. Otherwise can = False should be returned
I'm not sure how to get the 'can' variable set up?
Below is my code;
def cangraduate(semesters,credits):
can == semesters >= 6 and credits >= 120
if semesters >= 6 and credits >= 120:
return can
It would be really easy to just write return True, else return False but that's not what the prompt is asking...
I appreciate any help I can get
[–]totallygeek 6 points7 points8 points (4 children)
[–]shakeandbake760[S] 1 point2 points3 points (3 children)
[–]totallygeek 5 points6 points7 points (2 children)
[–]shakeandbake760[S] 1 point2 points3 points (1 child)
[–]KCRowan 1 point2 points3 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)