← All examples

Greeting

Python Input/Output

input → print

Flowchart (ISO 5807)

StartInput nameOutput "Привіт, " + nameEndFigure 1 — greet

Source code

def greet():
    name = input("Ім'я: ")
    print("Привіт, " + name)