Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Machine Learning Codes
## Checking condition if marks>80 then student is good.
if avg_marks >= 80:
print("Student is very good with marks %d" %avg_marks)
## Checking condition if marks is in range(60,80) then student is average.
elif (avg_marks<80 and avg_marks> 60):
print("Student is average with marks %d" %avg_marks)
## Checking condition if marks is below 60 then needs improvement
else:
print("Students needs improvement %d" %avg_marks)
#[Output]:
#Students needs improvement 45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.