Të përgjithshme

Input & output

Në shqip: Hyrja dhe dalja

ShpjegimiSQ

Çdo program merr diçka (hyrje: tastiera, skedarë, internet) dhe jep diçka (dalje: ekran, skedarë, tingull). Të mendosh qartë „çfarë hyn dhe çfarë del“ është hapi i parë i çdo problemi.

EnglishEN

Every program takes something in (input: keyboard, files, internet) and gives something out (output: screen, files, sound). Thinking clearly about “what goes in and what comes out” is the first step of any problem.

Si ta mendosh

Si një mulli: futen kokrra, del miell.

Lexoje në anglisht

Like a mill: grain goes in, flour comes out.

Shembull kodipython

emri = input("Si quhesh? ")   # hyrje
print(f"Tung, {emri}!")         # dalje

Terma të lidhur