Computer Science, asked by VaibhavIIInfinite, 10 months ago

This is a python question. Please help me by writing the code​

Attachments:

Answers

Answered by Anonymous
0

Answer:

its a python program

Explanation:

marks=eval(input("enter the marks"))

if marks<=100 and marks>=81:

   print("A grade")

elif marks<=80 and marks>=61:

   print("B grade")

elif marks<=60 and marks>=41:

   print("C grade")

else:

   print("D grade")

# hope it helps you

please mark brainliest

Answered by Equestriadash
8

The following codes must be typed in script mode, saved and then executed.

Here, we'll be using the IF - ELIF - ELSE statement. The advantage of using this statement is that multiple checking can be done. However, using only IF - ELSE, will result in checking of only one condition.

CODE:

x = float(input("Enter the marks:"))

if x > 80:

   print("Grade - A")

elif x > 60:

   print("Grade - B")

elif x > 40:

   print("Grade - C")

else:

   print("Grade - D")

OUTPUT:

Attachments:

Equestriadash: Thanks for the Brainliest! ♥
Similar questions