-
-
Save uncoded-ro/ca994e32d1eae2bb9b78096ac6aa4bc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""Rolul acestui modul este acela de a introduce functii pentru transmiterea de mesaje. | |
Fisier: hello.py | |
Versiune Python: 3.7 | |
""" | |
default_name = 'Zaya' # nume implicit al unei persoane | |
def hello_python(): | |
"""Afiseaza un mesaj de tipul Hello Python!""" | |
print('Hello Python!') | |
def hello_name(name=default_name): | |
"""Afiseaza un mesaj personalizat sau Hello Zaya! daca nu se transmite valoare pentru nume""" | |
print('Hello %s!' % name) | |
if __name__ == "__main__": | |
hello_name() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment