Example #1
0
def func_ten(calc_cleaned):
    calc_cleaned = calc_cleaned.lower()
    len_bool_value = check_len_what_calc(calc_cleaned)
    while len_bool_value == False:
        print("I'm sorry, but you have entered a non-legitimate \
calculation type. Please try again." + '\n')
        calc_cleaned = func_nine()
        calc_cleaned = func_nine_a(calc_cleaned)
        calc_cleaned = calc_cleaned.lower()
        len_bool_value = check_len_what_calc(calc_cleaned)
        continue
        return calc_cleaned
    return calc_cleaned
Example #2
0
def func_ten(calc_cleaned):
    calc_cleaned = calc_cleaned.lower()
    len_bool_value = check_len_what_calc(calc_cleaned)
    while len_bool_value == False:
        print("I'm sorry, but you have entered a non-legitimate \
calculation type. Please try again." + '\n')
        calc_cleaned = func_nine()
        calc_cleaned = func_nine_a(calc_cleaned)
        calc_cleaned = calc_cleaned.lower()
        len_bool_value = check_len_what_calc(calc_cleaned)
        continue
        return calc_cleaned
    return calc_cleaned
Example #3
0
 def test_three(self):
     self.assertFalse(check_len_what_calc('sddfsdf'))
Example #4
0
 def test_two(self):
     self.assertFalse(check_len_what_calc(''))
Example #5
0
 def test_one(self):
     self.assertTrue(check_len_what_calc('g'))
 def test_three(self):
     self.assertFalse(check_len_what_calc('sddfsdf'))
 def test_two(self):
     self.assertFalse(check_len_what_calc(''))
 def test_one(self):
     self.assertTrue(check_len_what_calc('g'))