Article Outline
Python example 'python-example-15'
python-example-15
Python example: python-example-15
#!/usr/bin/python
# -*- coding: UTF-8 -*-
score = int(raw_input('input score:\n'))
if score >= 90:
grade = 'A'
elif score >= 60:
grade = 'B'
else:
grade = 'C'
print('%d belongs to %s' % (score,grade))
Useful links
- Learn Python: https://pythonbasics.org/
- More Python: https://pythonprogramminglanguage.com