Python obejmuje ćwiczenia 34
Tytuł: Praktyka wywołanie funkcji.
Program Analysis: Brak.
Kod źródłowy:
#!/usr/bin/python # -*- coding: UTF-8 -*- def hello_world(): print 'hello world' def three_hellos(): for i in range(3): hello_world() if __name__ == '__main__': three_hellos()
Powyższy przykład wyjście jest:
hello world hello world hello world