Computer Science, asked by atom30, 12 hours ago

input marks of a student. If marks are >or= to 85 then display "good performance" else display "More effert required​

Answers

Answered by BrainlyProgrammer
3

Answer:

#Approach 1:-

marks=(int)(input("Enter your marks:))

print("Good Performance" if (marks>=80) else "More effort required")

#Approach 2(one-liner):-

print("Good Performance" if (int(input("Enter your marks:"))>=80) else "More effort required")

Logic:-

  • Accept marks as input and check if it is greater than 80 or not
  • if yes, display "Good Performance"
  • otherwise, display "More effort required"

Required Output Attached.

Attachments:
Answered by purveshKolhe
2

\huge{ \green{ \boxed{ \red{ \mathfrak{answer \: : }}}}}

Python::

marks = int(input())

print("Marks entered by you :-- " + str(marks)

if marks >= 85:

print("good performance")

else:

print("More effort required")

Output::

==> Asks you for input and outputs according to the instructions.

Hope It Helps You..

Similar questions