# functions practice
# def last_char(name):
#     return name[-1]

# print(last_char("shubham gupta"))
# last_char(9) #error

# def odd_even(num):
#     if num%2 == 0:
#         return "even"
#     else:
#         return "odd"

# short method:
# def odd_even(num):
#     if num%2 == 0:
#         return "even"
#     return "odd"

# print(odd_even(10))


# def is_even(num):
#     if num%2 == 0:
#         return True
#     else:
#         return False

# short method:
def is_even(num):       # num is called parameter
    return num%2 == 0 #true

print(is_even(10))    # this 10 is called argument


# function without pass parameter
# def song():
#     return "Happy Birthady Song"

# print(song())