
# Get the student's name
name = input("Enter student's name: ")

# Get three test scores
score1 = float(input("Enter first test score: "))
score2 = float(input("Enter second test score: "))
score3 = float(input("Enter third test score: "))

# Calculate the average
average = (score1 + score2 + score3) / 3

# Display the student's results
print("\nStudent Results")
print("Student Name:", name)
print("First Score:", score1)
print("Second Score:", score2)
print("Third Score:", score3)
print(f"Average Score: {average:.1f}")

# Check whether the student passed or failed
if average >= 50:
    print("Result: PASS")
else:
    print("Result: FAIL")