Esempio n. 1
0
def func_twelve():
    another_calc_dec = another_calc()
    cleaned_calc_dec = rem_comm_spaces(another_calc_dec)
    alpha_bool_value = is_alpha(cleaned_calc_dec)
    while alpha_bool_value == False:
        print("I'm sorry, but I did not understand that. \
Please try again. " + '\n')
        another_calc_dec = another_calc()
        cleaned_calc_dec = rem_comm_spaces(another_calc_dec)
        alpha_bool_value = is_alpha(cleaned_calc_dec)
        continue
    return another_calc_dec
Esempio n. 2
0
def func_twelve():
    another_calc_dec = another_calc()
    cleaned_calc_dec  = rem_comm_spaces(another_calc_dec)
    alpha_bool_value = is_alpha(cleaned_calc_dec)
    while alpha_bool_value == False:
        print("I'm sorry, but I did not understand that. \
Please try again. " + '\n')
        another_calc_dec = another_calc()
        cleaned_calc_dec = rem_comm_spaces(another_calc_dec)
        alpha_bool_value = is_alpha(cleaned_calc_dec)
        continue
    return another_calc_dec
Esempio n. 3
0
def func_nine():
    calc = what_calc()
    calc_cleaned = clean_what_calc(calc)
    alpha_bool_value = is_alpha(calc_cleaned)
    while alpha_bool_value == False:
        print("I'm sorry, but you have entered a number, \
a punctuation mark, or the empty string. Please try again" + '\n')
        calc = what_calc()
        calc_cleaned = clean_what_calc(calc)
        alpha_bool_value = is_alpha(calc_cleaned)
        continue
        return calc_cleaned
    return calc_cleaned
Esempio n. 4
0
def func_nine():
    calc = what_calc()
    calc_cleaned = clean_what_calc(calc)
    alpha_bool_value = is_alpha(calc_cleaned)
    while alpha_bool_value == False:
        print("I'm sorry, but you have entered a number, \
a punctuation mark, or the empty string. Please try again" + '\n')
        calc = what_calc()
        calc_cleaned = clean_what_calc(calc)
        alpha_bool_value = is_alpha(calc_cleaned)
        continue
        return calc_cleaned
    return calc_cleaned
Esempio n. 5
0
 def test_four(self):
     self.assertFalse(is_alpha('@#@$sfds'))
Esempio n. 6
0
 def test_three(self):
     self.assertFalse(is_alpha('sdf 434 df'))
Esempio n. 7
0
 def test_two(self):
     self.assertFalse(is_alpha(''))
Esempio n. 8
0
 def test_one(self):
     self.assertTrue(is_alpha('sdfweSDF'))
Esempio n. 9
0
 def test_four(self):
     self.assertFalse(is_alpha('@#@$sfds'))
Esempio n. 10
0
 def test_three(self):
     self.assertFalse(is_alpha('sdf 434 df'))
Esempio n. 11
0
 def test_two(self):
     self.assertFalse(is_alpha(''))
Esempio n. 12
0
 def test_one(self):
     self.assertTrue(is_alpha('sdfweSDF'))