Programmieren lernen mit PythonHPI-Student Team für Python

This video belongs to the openHPI course Programmieren lernen mit Python. Do you want to see more?

3.1 Funktionen ohne Parameter

Time effort: approx. 8 minutes

An error occurred while loading the video player, or it takes a long time to initialize. You can try clearing your browser cache. Please try again later and contact the helpdesk if the problem persists.

About this video


Hinweis: Eine Funktionsdefinition muss vor deren Ausführung erfolgt sein, sonst wirft Python einen NameError:

def hi():
    print("Hi")

hi()
hi()

Hi
Hi