Skip to content

Instantly share code, notes, and snippets.

@uncoded-ro
Created January 10, 2020 05:22
Show Gist options
  • Save uncoded-ro/ca994e32d1eae2bb9b78096ac6aa4bc0 to your computer and use it in GitHub Desktop.
Save uncoded-ro/ca994e32d1eae2bb9b78096ac6aa4bc0 to your computer and use it in GitHub Desktop.
# -*- 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