There must be a way to achieve this type of code. As it is its violating everything about DRY...
also is there any way to condense try except statements within 1 while True looks?
example
also is there any way to condense try except statements within 1 while True looks?
example
while True: try: foo = str(input('enter a string: ')) bar = int(input('enter a bar num > ')) moo = int(input('enter moo num > ')) break except ValueError: if foo != str(foo): print('must be a word...') else: print('number please') continuethere must be a way to tighten this up...