Skip to content

Instantly share code, notes, and snippets.

@Ventsislav-Yordanov
Last active February 8, 2019 05:14
Show Gist options
  • Save Ventsislav-Yordanov/5c6bc93ff393a07faa32ebf50bcea3e5 to your computer and use it in GitHub Desktop.
Save Ventsislav-Yordanov/5c6bc93ff393a07faa32ebf50bcea3e5 to your computer and use it in GitHub Desktop.
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