print(hello_func("Sylvester")) help(hello_func) #Create a new package/module of your own function and # import it and use it ( mylibrary.py ) import mylibrary print(mylibrary.__file__) dir(mylibrary) help(mylibrary.hello_func) print(mylibrary.hello_func("Sylvester", "Fernandes")) """ Collections or Iterables in Python Tuples ( Ordered on Key collection ) How to store a long list of information, which doesn't change over time? Tuples cannot be modified and is IMMUTABLE Collection of Constant values of different data types Represented by ( and ) brackets with a comma or only comma operator """ a = 7 #Introduce the concept of Simultaneous Assignment a, b = 1, 2.7
else: return -1 return i my_list = ['Corey', 'Rick', 'john'] index_location = find_index(my_list, 'Rick') print("Location of target is index : {}".format(index_location)) #Create a new package/module of your own function and # import it and use it ( mylibrary.py ) import mylibrary mylibrary.hello_func("Hello", "Sylvester") help(mylibrary.hello_func) # Hands On 1 # Make a function to find whether a year is a leap year or no, return True or False # Hands On 2 # Make a function days_in_month to return the number of days in a specific month of a year """ Code Challenge Name: Bricks Filename: bricks.py Problem Statement: