Прескочи на главни садржај
🔒 Режим прегледа. Првих петнаест Foundations лекција је бесплатно; ова је Pro. Покрените 7-дневни trial да откључате едитор, AI савете и остатак курса. Картица је обавезна, можете отказати у било ком тренутку у Dashboard.Покрени 7-дневни trial →
⚡
← Kursevi›Python FoundationsМодул 7 · Напредна стандардна библиотека›субпроцесс.рун — предвидети излазpredict140 / 174
+100 XP
Zadatak🌐 shown in EN
📝 **Task:** Predict the two lines printed by the program. \`echo "hi"\` prints "hi" + newline (stripped) and exits 0. 📋 Edit the starter code below. Tests run automatically. 💡 **Hint:** Re-read the theory if you get stuck.
Predvidi izlaz

Pažljivo pročitaj kod

import subprocess

result = subprocess.run(
    ["echo", "hi"],
    capture_output=True,
    text=True,
    check=True,
)
print(result.stdout.strip())
print(result.returncode)

Šta će program ispisati? Napiši ovde: