Last active
February 8, 2019 05:14
-
-
Save Ventsislav-Yordanov/5c6bc93ff393a07faa32ebf50bcea3e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
name = "Ventsi" # Global variable | |
def sum_numbers(number1, number2): | |
greting = "Hi, " + name # greeting is a local variable | |
sum_result = number1 + number2 # sum_result local variable | |
result = greting + " the sum is " + str(sum_result) # str() is a bult-in function | |
return result | |
print(sum_numbers(10, 5)) | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment