how to do this
python work
Attachments:
![](https://hi-static.z-dn.net/files/d9d/bdb95f7e7b110d1ed50588ae878cf7dd.jpg)
Answers
Answered by
8
m = float(input("Enter the marks secured: "))
if m >= 250:
print("Congratulations! You have scored A grade!")
elif m >= 200 and m <= 200:
print("Well done! You have scored B grade!")
elif m < 200:
print("Well tried! You have scored C grade!")
We use the float() function so that the data that is input by the user can be accepted as a float value, since it's possible to score decimal scores. If we were to use int(), and the user enters a float value, it will result in an error.
To print the grades, we use conditional statements, if-elif. They're used for testing out conditions and processing the further commands according to the given requirement.
Answered by
1
Answer:
correct answers please mark brainliest please like
Attachments:
![](https://hi-static.z-dn.net/files/dd8/90edfb82f67f68e61e03d4ab605b458f.jpg)
Similar questions