بتل کد Battle Codeدارد باز می‌شود…

جواب «Step 1: Executive Summary» چالش 1 از جلسه‌ی 64

سؤال

خلاصه‌ی مدیریتی را از داده بساز. ورودی: نام پروژه، تعداد صفحه‌های بررسی‌شده، و بعد سه عدد: تعداد یافته‌های high، medium، low. دقیقاً سه خط چاپ کن:
``
We reviewed <project> (<pages> pages) with the 10-item checklist.
We found <total> issues: <high> high, <medium> medium, <low> low.
<جمله‌ی سوم>
`
جمله‌ی سوم: اگر
high بیشتر از صفر است The high issues must be fixed before launch.، وگرنه اگر مجموع بیشتر از صفر است No critical risk; the remaining issues are scheduled.، وگرنه No issues found in this review.`

راهنما

f-string‌ها اینجا خیلی راحت‌ترند.

یک جواب درست

project = input()
pages = int(input())
high = int(input())
medium = int(input())
low = int(input())
total = high + medium + low
print(f"We reviewed {project} ({pages} pages) with the 10-item checklist.")
print(f"We found {total} issues: {high} high, {medium} medium, {low} low.")
if high > 0:
    print("The high issues must be fixed before launch.")
elif total > 0:
    print("No critical risk; the remaining issues are scheduled.")
else:
    print("No issues found in this review.")

اول خودت امتحان کن؛ جواب‌های دیگر هم قبول است. برگرد و خودت حلش کن