The Function Chaining Language

Library

  1. encode.py
  2. fclio.py
  3. fclstd.py
  4. shell.py
  5. webrequest.py

list_to_string

Create a string from the given list. Each value seperated by " " space.

def list_to_string(li):
    return " ".join(li) 

def cli_print_loop_list(li):
    for i in range(len(li)):
        print(li[i], "\n")

def loop_list(li):
    print("")

def for_every_list_item_use_function(li, fc):
    for i in range(len(li)):
        fc(li[i])

def multiply_return(x, y):
    return x * y

def multiply_print(x, y):
    res = x * y
    print("multiply_print:", res)

def divide_return(x, y):
    return x / y

def addition_return(x, y):
    return x + y

percentage

Calculates percentage based on the (high / low) * 100 formula.

def percentage(high, low):
    return (high / low) * 100

def if_equal(x, y):
    if x == y:
        return True

def if_unequal(x, y):
    if x != y:
        return True