Friday, January 11, 2019

Python - Learn by example - Variable assignment

# Defining variables
# Block of code is called shout
#
def myvar1():
    a=10; b=30; c=a+b; d=a+b+c; print(d)
    print("The Sun of", a, b, "and", c, "is:", d)

myvar1()


No comments:

Post a Comment