########################################################
#
#            ......Authors......
#             First and Last Name 
#                 Affiliation
#                email address
#            ...................
#
#           Training #Coding4CLevels
#        Aurélie Jean (In Silico Veritas)
#         Alain Buzzacaro (OCTO Academy)
#
#                    2018
#
########################################################

# ---------------------
# python libraries
# ---------------------
# ~> to generate random integer number
from random import randint
# ~> to track time duration and date
import datetime
import time


print("\n----------------------------")
print("        WARMUP 1")
print("----------------------------")
# ------------------------------------------------------
# Warmup 1 : The types in Python
# ------------------------------------------------------


print("\n----------------------------")
print("        WARMUP 2a")
print("----------------------------")
# ------------------------------------------------------
# Warmup 2a : Hello World!
# write a code that prints the sentence "Hello World!" 
# on your screen
# ------------------------------------------------------


print("\n----------------------------")
print("        WARMUP 2b")
print("----------------------------")
# ------------------------------------------------------
# Warmup 2b : Hello World! x 3 times
# write a code that prints 3 times on 3 different lines
# the sentence "Hello World!" on your screen
# ------------------------------------------------------


print("\n----------------------------")
print("        WARMUP 3")
print("----------------------------")
# ------------------------------------------------------
# Warmup 3 : Hello World! x 100 times
# write a code that prints 100 times on 100 different 
# lines the sentence "Hello World!" on your screen
# ------------------------------------------------------


print("\n----------------------------")
print("        WARMUP 4")
print("----------------------------")
# ------------------------------------------------------
# Warmup 4 : Incrementing in Python
# use a foor loop that is incrementing the number of 
# students in a class when doing a roll call
# ------------------------------------------------------
# total number of students in the class
all_students = 32
# roll call initialized to 0 
roll_call = 0



print("\n----------------------------")
print("        WARMUP 5")
print("----------------------------")
# ------------------------------------------------------
# Warmup 5 : if loop
# print only names that has more than 6 characters
#
# using a if condition, print a message that specifies 
# that the given name has more than 6 characters,
# else print a message that specifies that the name has 
# less than 6 characters
# ------------------------------------------------------
names = ["Alain", "Emmanuelle", "Naomie", "Loubna", "John", "Said", "Catherine"]


print("\n----------------------------")
print("        WARMUP 6")
print("----------------------------")
# ------------------------------------------------------
# Warmup 6 : Lists in Python
# - Access the first value of the list and print it 
#   on screen
# - Access the third value of the list and print it
#   on screen
# - Access the last value of the list and print it 
#   on screen
# ------------------------------------------------------
my_list = [7, 349, 2, 45, 2, 83, 1, 8, 930]


print("\n----------------------------")
print("        WARMUP 7")
print("----------------------------")
# ------------------------------------------------------
# Warmup 7 : Dictionnaries in Python
# - Access the number of eggs and print the value on screen
# - Access the total number of groceries and print the value
#   on screen
# ------------------------------------------------------
groceries = {"eggs" : 12, "bananas" : 4, "tomatoes" : 10}


print("\n----------------------------")
print("        WARMUP 8")
print("----------------------------")
# ------------------------------------------------------
# Warmup 8 : Use of functions
# call the function operation to compute the operation
# on a=32.4 and b=4.7, and print the result
# on the screen
# ------------------------------------------------------
def operation(a,b):
    # operation to execute on a and b
    result = (2. * a + 11. * b)/2.5
    # return the output result
    return result


# end of file
