# Imports #
import sys, os, importlib, inspect, locale, time, math
from datetime import datetime
locale.setlocale(locale.LC_ALL, '') # Set the locale for your system 'en_US.UTF-8'
# Main #
def main():
# Main Code
print("Root floor: {}, Ceiling: {}".format(*f_RootSplit(91)))
print("Root floor: {}, Ceiling: {}".format(*f_RootSplit(161)))
#-----------Basement------------
# Functions #
# Normal Functions
def f_RootSplit(v_Num):
"""&Syntax: INT; Returns: LIST of INT;
Desc.: Converts v_Num into root floor and root ceiling.
Test: print("Root floor: {}, Ceiling: {}".format(*f_RootSplit(91)))"""
v_RootFloor = math.sqrt(v_Num) // 1 ## Compute sqrt floor
v_RootCeiling = v_RootFloor + 1 ## Create sqrt ceiling
return v_RootFloor, v_RootCeiling
# Main Loop #
if __name__ == '__main__':
main()